Substitute variable in expression
Hello, I have to do a substitution in an expression: i want to substitute diff(psi) with omega, where i declared psi as psi = function('psi',t)
I tried doing expr.substitute(diff(psi)==omega) but it doesn't work.
What do I have to do?
Thank you very much.