MathGroup Archive 2004

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

Search the Archive

RE: simple bug about Sum/Product function?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg46792] RE: [mg46709] simple bug about Sum/Product function?
  • From: "MATUDA Yuko" <matsuda.yuko at acm.org>
  • Date: Mon, 8 Mar 2004 04:10:28 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Hello all,

I would like to follow up my previous mail because anyone 
seems not to  have an interest in this kind of Mathematica bug.

The output of following expressions are self-explanatory:

 Sum[1,{i,10}]
> 10
Sum[1,{1000000}]
> 1000000                OK.
Sum[1,{1000001}]
> Sum[1,{1000001}]   What?

Sum[1,{i,1000001}]
> 1000001                 Yes, it's good. But, ....

Sum[Print@1; Random[],{i,3}]
>
1
1
1
1.52163

Sum[Print@1; Random[],{i,1000001}]
> 
1                               Only one line printed!!!  Something
wrong.
236974.

Product[1,{i,10}]
> 1
Product[1,{i,1000000}]
> 1
Product[1,{i,1000001}]
> StandardForm[Product[1,{i,1000001}]]      ???? 

These outputs are produced in Mathemtatica ver5.0 and ver5.01. 

Thank you for your help.

YUKO



  • Prev by Date: RE: Re: Creating my own cell
  • Next by Date: Re: Shared variables between notebooks?
  • Previous by thread: Re: simple bug about Sum/Product function?
  • Next by thread: RE: simple bug about Sum/Product function?