Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

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

  • To: mathgroup at smc.vnet.net
  • Subject: [mg109513] Re: Evaluating a sum from terms generated by the Array function
  • From: "M.Roellig" <markus.roellig at googlemail.com>
  • Date: Mon, 3 May 2010 06:10:25 -0400 (EDT)
  • References: <hrjh0l$bg8$1@smc.vnet.net>

On 2 Mai, 11:35, davef <davidfrick2... at yahoo.com> 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?

maybe Total ?

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

x - x^2/2 + x^3/6


Markus


  • Prev by Date: Re: how uncouple dynamic objects?
  • Next by Date: Front-end - a strange behaviour of Plot3D
  • Previous by thread: Evaluating a sum from terms generated by the Array function
  • Next by thread: Re: Evaluating a sum from terms generated by the Array function