1 | initial version |
Where did you learn about this syntax? At least the following does work
sage: de1.subs({R: sin(x)})
diff(M(x), x) == -M(x) + sin(x)
2 | No.2 Revision |
Where did you learn about this syntax? At least the following does work
sage: de1.subs({R: sin(x)})
diff(M(x), x) == -M(x) + sin(x)
Alternatively, you can use
sage: R = function('R')
sage: Rx = R(x)
sage: de1 = diff(M) == -k(M - Rx)
sage: de1.substitute_function(R, sin)
diff(M(x), x) == -M(x) + sin(x)