There is an open issue about this https://github.com/sympy/sympy/issues/11868.
Aaron Meurer On Fri, Feb 28, 2020 at 12:00 PM Lorenzo Monacelli <[email protected]> wrote: > > Dear all, > I have a complex expression and I want to separate imaginary and real part, > however I noticed that when I have derivatives on a function, the real and > imaginary part separation does not work properly: > > t = sy.Symbol("t", real = True) > f = sy.Function("f", real = True)(t) > > Then if I ask sympy the imaginary part of f, it correctly returns 0, however > if I ask the immaginary part of the derivative of f, it is not able to see > that it is zero: > > sy.im(f) # this is zero (ok!) > sy.im(sy.diff(f, t)) # does not simplify to zero > > How can I force sympy to set automatically the derivative of f to real > numbers? > Thanks in advance for the help, > Bests, > Lorenzo > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/sympy/dec5a368-f065-4a1f-b5da-9bb2b4f74559%40googlegroups.com. -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAKgW%3D6KZ1xiekcbnhM1n%3Du_gLPdMk%2B7HRCocW6-mG%3DOqxDzCmQ%40mail.gmail.com.
