This symbolic expression in Matlab
syms x y;
f = x * y * y
returns
f =
x*y^2
How can I stop Matlab from simplifying the expression and let it remain as x * y * y
?
I'm trying to print the steps of a calculation this way, so reordering the terms causes confusion.