Status: New
Owner: nicolas.pourcelot
Labels: Type-Enhancement Priority-Medium

New issue 1513 by nicolas.pourcelot: complex log is not simplified
http://code.google.com/p/sympy/issues/detail?id=1513

sympy.log should be able to symplify at least simple examples :

>>> sympy.log("sqrt(2)/2+sqrt(2)/2*I")
log(2**(1/2)/2 + I*2**(1/2)/2)

simplify does not help here :

>>> sympy.simplify(sympy.log("sqrt(2)/2+sqrt(2)/2*I"))
-log(4) + log(2*2**(1/2) + 2*I*2**(1/2))

I think sympy.arg could handle this :

>>> sympy.arg("sqrt(2)/2+sqrt(2)/2*I")
pi/4

What do you think about sympy.log(z) always returning sympy.log(abs(z)) +
sympy.arg(z)*I, if z is not real ?

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to