MathGroup Archive 2005

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

Search the Archive

Re: how to make conditional summation


Hi Xun,

> Say, Sum[f[m],{m,-N,N}] with N != 0
> Any suggestions?

Maybe something like
Sum[If[m==0,0,f[m]], {m,-N,N}]
?

For example,
Sum[If[m==0, 0, 1/m^2], {m, -100, 100}]
would ordinarily fail at m==0.

Later,
Daniel


  • Prev by Date: Re: Position function
  • Next by Date: exploded plots
  • Previous by thread: Re: how to make conditional summation
  • Next by thread: Re: how to make conditional summation