Hi: I know expand_complex can translate from polar form (say e*ix) to real imaginary form (cos(x)+isin(x)), however I also need to do it in the other way from (cos(x)+isin(x)) to e*ix. The ugly way is to:
a=cos(x)+isin(x) a=sympy.Abs(a)*sympy.exp(sympy.I*sympy.arg(a)) I want to know is there any elegant way (just a sympy builtin function call) to do that? Actually, I have a complex number expression, now I want to represent all the complex symbol in the polar form |x|e^(iarg(x)), how to do that? -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/d0fa1394-b195-490a-94e1-35a9b7cc9fe2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
