Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #1316

Re: Series holding the final sum

From "Harvey P. Dale" <hpd1@nyu.edu>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Series holding the final sum
Date 2011-03-31 08:59 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <in1fpe$4dq$1@smc.vnet.net> (permalink)

Show all headers | View raw


Sorry: the code below does what you wish, but you have to set "ss"
first, so:
ss= x - x^3/3 + x^5/5 - x^7/7 + x^9/9 - x^11/11

	Best,
	Harvey

-----Original Message-----
From: Harvey P. Dale
Sent: Wednesday, March 30, 2011 7:55 AM
To: Jon Joseph; mathgroup@smc.vnet.net
Subject: Re: Series holding the final sum

Select[-CoefficientList[ss,x],#!=0&]

	Best,
	Harvey

-----Original Message-----
From: Jon Joseph [mailto:josco.jon@gmail.com]
Sent: Wednesday, March 30, 2011 5:10 AM
Subject: Series holding the final sum

All:  Given the following sum:

Sum[(-1)^(n + 2) x^(2 n + 1)/(2 n + 1), {n, 0, 5}]

which generates:

x - x^3/3 + x^5/5 - x^7/7 + x^9/9 - x^11/11

I would like to replace x with -1 (%/.x->-1) without the sum being
evaluated so I end up with

-1+1/3-1/5+1/7-1/9+1/11

So far I have not been able to find a way to Hold, HoldForm, Unevaluate,
or Defer and keep getting -2578/3465.  Thanks. Jon


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Series holding the final sum "Harvey P. Dale" <hpd1@nyu.edu> - 2011-03-31 08:59 +0000

csiph-web