Re: [sympy] Re: simplify works on expression but not on its negative

2016-03-14 Thread Aaron Meurer
Definitely a bug. A workaround is to use (-I/2*exp(I*theta) + I/2*exp(-I*theta)).rewrite(sin), which will force the exponentials to be rewritten in terms of sin and cos. Aaron Meurer On Mon, Mar 14, 2016 at 4:10 AM, Francesco Bonazzi wrote: > A related issue: > > In [6]: m = Matrix([[0, theta],

[sympy] Re: simplify works on expression but not on its negative

2016-03-14 Thread Francesco Bonazzi
A related issue: In [6]: m = Matrix([[0, theta], [-theta, 0]]) In [7]: exp(m) Out[7]: [ I*theta-I*theta I*theta -I*theta] [ e e I*e I*e] [ + -- -- + ---] [ 2 2 2