Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: Sum

  • To: mathgroup at
  • Subject: [mg55206] Re: Sum
  • From: David Bailey <dave at>
  • Date: Thu, 17 Mar 2005 03:28:26 -0500 (EST)
  • References: <d192qe$ng4$>
  • Sender: owner-wri-mathgroup at

mjumbo wrote:
> Can sombody explain me why
> Sum[Exp[- k], {k, 0, Infinity}]
> gives the correct result, while the following (imho equivalent) statements
> x = Exp[-k]
> Sum[x, {k, 0, Infinity}]
> don't? What should I do to make it work? It is rather vexing to copy/paste long expressions instead of using short placeholders like x.
> __________
> -- Íîâàÿ Ïî÷òà: âñå ïî-íîâîìó.

The variable k is considered local to the Sum construct, and therefore 
distinct from the global variable k. Here is one way to get what you want:


This splices the value of x into the Sum before it is executed.

David Bailey

  • Prev by Date: Re: a simplification problem
  • Next by Date: Re: GridLines
  • Previous by thread: Re: Sum
  • Next by thread: Re: Sum