| 1 | initial version |
Try this.
sage: eqTest.subs({dphi_x:p_x/m})
t |--> E == 1/2*m*omega^2*\phi_x(t)^2 + 1/2*p_x(t)^2/m
| 2 | No.2 Revision |
Try this.In this case, substituting an expression with subs and a substitution dictionary
seems to work.
So we can avoid using substitute_function.
Example:
sage: eqTest.subs({dphi_x:p_x/m})
t |--> E == 1/2*m*omega^2*\phi_x(t)^2 + 1/2*p_x(t)^2/m
| 3 | No.3 Revision |
In this case, substituting an expression with subs and a substitution dictionary
seems to work.
So we can avoid using substitute_function.
Example:
sage: eqTest.subs({dphi_x:p_x/m})
eqTest.subs({dphi_x: p_x/m})
t |--> E == 1/2*m*omega^2*\phi_x(t)^2 + 1/2*p_x(t)^2/m
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.