I have this expression:
"98/25 * x1^3 * x2 + 28/5 * x1^2 * x2^2 + 98/25 * x1 * x2^3"
When I apply PrettyForm
with Ryacas, I get:
cat(yac_str("PrettyForm(98/25 * x1^3 * x2 + 28/5 * x1^2 * x2^2 + 98/25 * x1 * x2^3)"))
3 2 2 3
x2 * 98 * x1 x2 * 28 * x1 x2 * 98 * x1
------------- + -------------- + -------------
25 5 25
I would prefer to have the numbers in each term at first position, and, if possible, to have x1
before x2
.