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