Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 2443 by adampaet...@gmail.com: Result of subs() is incorrect after unpickling
http://code.google.com/p/sympy/issues/detail?id=2443

After pickling and then unpickling the attached symbolic expression, the value returned by subs() is incorrect.

The attached files illustrate the bug. The output is as follows:

python unpickle.py
0.00120006086051012

python unpickle.py pickle
0.000434779937054191

The correct value of 0.0012 is calculated by sympifying the (very long) string in stringA.py and then calling subs(). The incorrect value of 0.0004 results from pickling and then unpickling the same sympified string.

Note that the actual expression (obtained by calling str(), for example) seems to be correctly restored by unpickling. Its only the value computed by subs() that is incorrect.


Attachments:
        unpickleBug.py  598 bytes
        stringA.py  54.2 KB

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to