I run the following code in ipython3 notebook:

import sympy
x=sympy.symbols("x",real=True)
f=sympy.symbols("f",cls=sympy.Function,real=True)
sympy.Abs(f(x)).diff(x)

and expect that the answer is just df(x)/dx. However, sympy still treat the 
function f is a complex function.

So how to tell sympy that f is a real function?

Chaowen GUO

-- 
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 http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/954da99e-b381-4e04-9579-67eeaa6f50a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to