MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Evaluating a sum from terms generated by the Array function


On 5/2/10 at 5:35 AM, davidfrick2003 at yahoo.com (davef) wrote:

>I want to evaluate a sum from a series I created using the Array
>function.

>For example; I specify

>Array[((-1)^(# + 1) (x)^#)/# ! &, 3, 1 ]

>which gives me the following 3 terms of output:

>{x, -(x^2/2), x^3/6}

>Can anyone tell if and how I can turn these 3 terms into a sum to be
>evaluated?

In[2]:= Plus @@ Array[((-1)^(# + 1) (x)^#)/#! &, 3, 1]

Out[2]= x^3/6 - x^2/2 + x

or

In[3]:= Total@Array[((-1)^(# + 1) (x)^#)/#! &, 3, 1]

Out[3]= x^3/6 - x^2/2 + x



  • Prev by Date: Re: Evaluating a sum from terms generated by the Array
  • Next by Date: Re: Evaluating a sum from terms generated by the Array function
  • Previous by thread: Re: Evaluating a sum from terms generated by the Array function
  • Next by thread: Re: Evaluating a sum from terms generated by the Array function