Polynomial: distribute to greatest common factor
Hello, assuming I have a polinomial like this:
sage: var('x, y') (x, y) sage: y = 2*x^2 + x^3 + 10*x^4
is there a way to get it simplified applying the distributive property on the greatest common factor?
In this case, the output should be this:
y = x^2 * ( 2 + x + 10*x^2 )