With same version except for Mac OS X 10.9 (on machine with 16GB RAM), also no
problem getting +/ i. 10E8, but +/ i. 10E9 caused OS to run out of memory.
By contrast, on same machine, with Mathematica 9.0.1 (where indexing origin is
1, not 0):
Total[Range[10^9 - 1]]
499999999500000000
Total[Range[10^10 - 1]]
(crashes OS with out-of-memory)
(* another way: *)
Sum[i, {i, 10^10 - 1}]
49999999995000000000
There was no real point with Mathematica trying to go to higher orders of
magnitude, since Mathematica can do this symbolically:
Sum[i, {i, 10^n - 1}]
2^(-1 + n)*5^n*(-1 + 10^n)
At 21 Jan 2014 07:21:35 -0700, Don Guinn <[email protected]> wrote:
>
> Just tried the expression +/ i. 10E8 for fun and crashed Windows 7 twice.
> Locked the machine and had to reboot.
>
> Engine: j701/2011-01-10/11:25
> Library: 801.017
> Qt IDE: 1.0.22/4.8.5
> Platform: Win 64
>
> Windows 7 Home Premium
> Service Pack 1
——
Murray Eisenberg [email protected]
Mathematics & Statistics Dept.
Lederle Graduate Research Tower phone 240 246-7240 (H)
University of Massachusetts
710 North Pleasant Street
Amherst, MA 01003-9305
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm