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
.