Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
|
|
Expand Crashes Mathematica
Posted:
Jan 22, 2013 11:18 PM
|
|
Hello,
It seems like the Expand command is seriously broken. The hint of Daniel Lichtblau in https://groups.google.com/forum/#!topic/comp.soft-sys.math.mathematica/PWToEFKNAs4 is a workaround also here.
Ralf
============ t.m ======================== Expand[(14 + 15*x + 22*x^2 + 18*x^3 + 21*x^4)/39916800, Modulus->mod] Print["I survived"] =============== END t.m ===========================
$ (echo "mod=32003"; cat t.m)|math Mathematica 9.0 for Linux x86 (32-bit) Copyright 1988-2012 Wolfram Research, Inc.
In[1]:= Out[1]= 32003
In[2]:= 2 3 4 Out[2]= 24987 + 19914 x + 16406 x + 4695 x + 21479 x
In[3]:= I survived
In[4]:=
$ (echo "mod=23"; cat t.m)|math Mathematica 9.0 for Linux x86 (32-bit) Copyright 1988-2012 Wolfram Research, Inc.
In[1]:= Out[1]= 23
In[2]:=
|
|
|
|