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.
def RealFunction(*args, **kwargs):
instance = Function(*args, **kwargs)
instance.is_real = True
return instanceTo view this discussion on the web visit https://groups.google.com/d/msgid/sympy/0c906880-41fe-41bb-82ea-ae6ddcb3848f%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAAb4jGkWNoXAbu5_-HJ1bDVhnnK_Esi6eDQbqGvnBYxz42HpMA%40mail.gmail.com.