Dear all,
If we have a polynomial f, we can use powers(f, x) to find the set of
powers of x in f. If f is a rational function, how can we find the set of
its powers. For example, f=q^2/p+q^2/p^2+q^2+p^2/q^2+p/q^2+1/q^2+p+1/p+3.
How can we find the list of powers of p: -1, -2, 0, 2, 1, 0, 1, -1, 3?
Thank you very much.
Best wishes,
Jianrong.