| 1 | initial version |
You have to use the method apply_map() in order to perform the substitution on each component of the vector field:
sage: vf.apply_map(lambda cmp: cmp.subs(a==1))
sage: vf.display()
e_x + x e_y + x*y e_z
See the documentation of apply_map() for more details.
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.