$1)$ For the polynomial
p = x^(-4) - x^(-3) - 2x^(-2) + 2 + 3x + x^2 + 2x^4
How to change the negative exponentials into the positive exponentials,
p = x^4 - x^3 - 2x^2 + 2 + 3x + x^2 + 2x^4
$2)$ Given a series of numbers with the form (coefficient, exponent)
. Take {2,1},{-1,2},{1,0}
and {2,4}
for example, how to change them into a polynomial like
2x - x^2 + 1 + 2x^4
Thank you.
p /. x^q_ -> x^Abs[q]
? $\endgroup$