I would appreciate advice on efficient ways to approximate the real roots of an extremely high-degree but very sparse polynomial.
My polynomial is
$$ P_{M,T}(x)\;=\; (M-T)\,x^{M+2} +(T-M-1)\,x^{M+1} +\frac{T}{2}\,x^{2} +x-\frac{T}{2}, $$ with only five non-zero coefficients.
My concrete instance is
$M = 32760, T = 23.597875$ (so $\deg P = 32762$).
I suspect the solution is very close to $x=1$ so numerical methods overflow.
Edit: $P_{M,T}$ was obtained from the identity $$ T \;=\; 2\! \left( -\,\frac{ x\bigl[T(x-1)(x^{M}-1)\;-\;M x^{M+1}\;+\;(M+1)x^{M}\;-\;1\bigr]} {(x-1)^2} \right) $$ by clearing the denominator $(x-1)^2$. That multiplication automatically inserts the factor ((x-1)^2) into the numerator, so $x=1$ becomes a double root of the resulting polynomial. However, that is not the root I' looking for.
I'm currently trying to use sympy.real_roots method in Python:
real_roots((M - delta) * x**(M + 2) + (delta - M - 1) * x**(M + 1) + delta / 2 * x**2 + x
- delta / 2),
however it is taking too long to compute.
Any help is highly appreciated!