Hey, thanks a lot, but that doesn't seem right since the solution should have a real and imaginary part!
Thanks again, Pavel On Fri, Jul 10, 2015 at 2:36 PM, Gaurav Dhingra <axyd0...@gmail.com> wrote: > Hi PG > > Though you should what output you expect(that helps the answerer). > Assuming you expect solution in terms of `sin` or `cos` or some > trigonometry. You can fo this: > ``` > >>> expr = (2+2*I)*exp(I*a) - (2-2*I)*exp(-I*a) > >>> simplify(expr.rewrite(sin)) > 4*sqrt(2)*I*sin(a+pi/4) > ``` > > Cheers > Gaurav > > -- > You received this message because you are subscribed to a topic in the > Google Groups "sympy" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/sympy/tDzSVoYz2m8/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > sympy+unsubscr...@googlegroups.com. > To post to this group, send email to sympy@googlegroups.com. > Visit this group at http://groups.google.com/group/sympy. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sympy/dc71e2c2-49fb-4b2d-ad49-696c70d72101%40googlegroups.com > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAAnX_%3DT6BobSatkY5vwsvozXtVk5o8vZ6zwjnxkr2F839VunJw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.