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

New issue 3322 by [email protected]: Another CSE bug
http://code.google.com/p/sympy/issues/detail?id=3322

Hi there,

the following program:

-------------------------------------------------
import sympy as sp
from sympy import  exp, I

assign = [
        (exp(2*I) - 2*I)
         ]

new_ass, exprs = sp.cse(assign)
print "------------------------"
for e in assign:
    print e
print "------------------------"
for n, v in new_ass:
    print n, v
print
for e in exprs:
    print e
print "------------------------"
-------------------------------------------------

prints this for me with the current git code:

------------------------
-2*I + exp(2*I)
------------------------
x0 2*I

x0**2 + exp(x0)
------------------------

Note how the first term should be -2*I, but it gets CSE'd to -4.

--
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.

Reply via email to