| 1 | initial version |
The issue is that simplify and expand send sexp to Maxima, which does not "know" about your custom print function. Then when it comes back to Sage it also doesn't know about it anymore. One way of slightly avoiding this is to call the new thing sexp2, though this doesn't solve the printing problem.
For that, you may have to somehow coerce the expression back to using your a, perhaps using subs.
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.