Polynomial factorization
I have a polynomial in x,y,z such that each term can factor out a certain power of x to get a polynomial with nonzero constant term. I want to simplify this polynomial, so I want to find the largest n such that each term can be divided by x^n and then divide the whole polynomial by x^n. How shall I do it?
In your story it's not clear to me which polynomial should have a nonzero constant term. Please give an example of the input and the output you want.