Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1658 by renato.c...@gmail.com: [PATCH] derivatives of complex  
functions re, im, abs and arg don't evaluate correctly
http://code.google.com/p/sympy/issues/detail?id=1658

In [1]: Derivative(re(f(x)), x, **{'evaluate': True})
Out[1]: D(f(x), x)*D(re(f(x)), f(x))

In [2]: Derivative(im(f(x)), x, **{'evaluate': True})
Out[2]: D(f(x), x)*D(im(f(x)), f(x))

In [3]: Derivative(arg(f(x)), x, **{'evaluate': True})
Out[3]: D(arg(f(x)), f(x))*D(f(x), x)

In [4]: Derivative(arg(f(x)), x, **{'evaluate': True})
Out[4]: D(arg(f(x)), f(x))*D(f(x), x)

Including tests for these, also corrected this one:

assert abs(x).diff(x) == sign(x)

which is true only if x is real.

Attachments:
        0001-Fixes-issue-1658-derivatives-of-re-im-abs-and-arg-ar.patch  4.0 KB

--
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