| 1 | initial version |
Note that you can also use Python dicts instead of symbolic expressions, which is usually more robust for complex substitutions :
sage: def test(self, symb):
....: return self-self.subs({symb: symb-1})
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.