On Saturday, September 19, 2015 at 12:58:53 PM UTC-4, brombo wrote:
>
> How do I define a real function of a real variable?
>
> X = symbols('x y z',real=True)
>
> f = Function('f',real=True)(*X)
>
> "real=True" in Function doesn't do anything.
>
Let me clarify. If I use the above to define f then
re(f) returns re(f) not f and
im(f) returns im(f) not 0.
f is being treated as a fuction with an arbitrary real and imaginary part.
How do I avoid this so that
f = re(f)
0= im(f)
--
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/1e6c71b1-7387-4d47-a745-dd0068fc733e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.