Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You may try :

sage: %cpaste
Pasting code; enter '--' alone on the line to stop or use Ctrl-D.
sage: b(a(x))
sage: a(b(x))
((x - 4)^3)^(1/3) + 4
sage: a(b(x)).canonicalize_radical()

But beware : such "obvious" simplifications are not always legitimate (think of negative powers or negative exponends...).