MATLAB: Is there any way to simplify a polynomial without using simplify from Symbolic Math Toolbox

Symbolic Math Toolbox

z=simplify(y)
set(handles.edit23,'String',inline(z))

Best Answer

Yes. However, it is a lot of work. For example the code has to know details such as
sin(x)^3 + cos(x)*sin(x)*cos(x)
should simplify to sin(x)
I think you have forgotten, though, that your input is from the user, and the user is not restricted to entering polynomials.