1 | initial version |
Dear @ZL,
@dan_fulea's answer is right : parameterizing your expression is the rightthing to do ; and, as he wrote, this parameterization needs some hinsight in the problem you want to solve.
I just want to add that Sympy's simplify
seems more agressive tn a Sage's simplifu
and sometimes full simplify
; the idiom X._sympy_().simplify._sage_()
might come in handy. Ditto for mathematica.FullSimplify(X).sage()
(which, of course, requires Mathematica or the gratis Wolfram Engine...).
HTH,