1 | initial version |
Try y.collect_common_factors()
. This gives the output you want.
You could also use factor(y,x^2)
if you know upfront that you want to factor out $x^2$.
2 | improved formatting |
Try Try:
y.collect_common_factors()y.collect_common_factors().
This gives the output you want.
You could also use factor(y,x^2)
if you know upfront that you want to factor out $x^2$.