Status: New
Owner: [email protected]
Labels: Type-Defect Priority-Medium
New issue 2204 by [email protected]: sympy dislikes pickle pi
http://code.google.com/p/sympy/issues/detail?id=2204
After pickling and unpickling pi, a simple cos(pi) no longer nicely
simplifies to -1 on its own (it does if you nsimplify it)
Code:
$ cat test.py
from sympy import *
from pickle import *
mypkl = open('test.pkl', 'wb')
dump(pi, mypkl)
mypkl.close()
mypkl = open('test.pkl', 'rb')
picklepi = load(mypkl)
mypkl.close()
print cos(pi)
print cos(picklepi)
print nsimplify(cos(picklepi))
Output:
$ python test.py
-1
cos(pi)
-1
Expected output:
-1
-1
-1
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.