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 2004

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

Search the Archive

Re: simple bug about Sum/Product function?

  • To: mathgroup at
  • Subject: [mg46777] Re: simple bug about Sum/Product function?
  • From: "Dana DeLouis" <delouis at>
  • Date: Sun, 7 Mar 2004 01:34:04 -0500 (EST)
  • Sender: owner-wri-mathgroup at

In version 5 for Windows, it works for me also up to 1,000,000.  It
returns unevaluated for values over that.

Sum[2, {1000000}]

- - 
Sum[2, {1000001}]

Sum[2, {1000001}]
- - 
However, if I use NSum, I get a error no matter what the value. 

NSum[2, {100}]

NSum::itraw : Raw object 100 cannot be used as an iteration.
- - 

As others have mentioned, it works ok if the first item is not a "Raw
Object", but an iteration variable.

Sum[2, {i, 1000001}]



P.S.  I have no idea why no error here though.

- - 

Sum[2, {junk}]

Sum[2, {junk}]
- - 

NSum[2, {junk}]


"MATUDA Yuko" <matsuda.yuko at> wrote in message
news:c237r8$ie9$1 at
> Hello there,
> Try the following simple expressions in Mathematica(ver5)
> Sum[1, {1000001}]
> Product[1, {1000001}]
> There are no problems in ver 4.2.

  • Prev by Date: Re: Bug report for MathixExp applied to a matrix of more-than-machine-precision numbers.
  • Next by Date: Re: NDSolve and time-delayed equations?
  • Previous by thread: RE: RE: simple bug about Sum/Product function?
  • Next by thread: RE: simple bug about Sum/Product function?