Comment #70 on issue 966 by smichr: Can't simplify exp(2 * pi * I * a) when
a is integer
http://code.google.com/p/sympy/issues/detail?id=966
Actually, I should be clearer:
1) the original issue of exp(2*pi*I*an_integer) already works in master
2) there were two tests introduced in the patches of comment 46:
a) the first one passes in my t branch
b) the second one passes already in master
Here they are in the t branch:
from sympy import *
from sympy.abc import x,y,z
assert (1-x-y).could_extract_minus_sign() == False
e = (x-y)*(z-y) + sin((x-y)*(z-y))
substs, reduced = cse([e],
optimizations=[(cse_opts.sub_pre,cse_opts.sub_pos
t)])
var('x0,x1,x2')
(x0, x1, x2)
assert (substs, reduced) in [ ([(x0, z-y), (x1, x-y), (x2, x0*x1)], [x2
+ si
n(x2)]),([(x0, x-y), (x1, y-z), (x2, x0*x1)], [-x2 - sin(x2)]) ]
--
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.