Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #5313
| From | dimitris <dimmechan@yahoo.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | HoldForm and Sum |
| Date | 2011-10-01 07:08 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j66e8v$hbs$1@smc.vnet.net> (permalink) |
Hell to all.
A (well-known) nice example of the use of HoldForm is:
Sum[(HoldForm[#1] & )[i], {i, 1, 10}]
(*output omited*)
I want to do the same with 1/i
Sum[(HoldForm[#1] & )[1/i], {i, 1, 10}]
Mathematica output is
1/10+1/9+1/8+...+1/3+1/2+1
My first question is how can I get the output in the form
1+1/2+1/3...+1/8+1/9+1/10
My second query comes now. How can I combine HoldForm and Sum (or
anything else) in order to have the following output (unevaluated)?
1+1/2+1/3-1/4-1/5-1/6+1/7+1/8+1/9-1/10-1/11-1/12
that is, three positive terms after three negative and so on.
Thank you in advance for your response.
Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread
HoldForm and Sum dimitris <dimmechan@yahoo.com> - 2011-10-01 07:08 +0000 Re: HoldForm and Sum Alan <alan.isaac@gmail.com> - 2011-10-02 06:36 +0000 Re: HoldForm and Sum "Dr. Wolfgang Hintze" <weh@snafu.de> - 2011-10-02 06:36 +0000 Re: HoldForm and Sum Alan <alan.isaac@gmail.com> - 2011-10-02 06:38 +0000
csiph-web