Function mrpt::math::solve_poly5
Defined in File poly_roots.h
Function Documentation
-
int mrpt::math::solve_poly5(double *x, double a, double b, double c, double d, double e) noexcept
Solves equation
x^5 + a*x^4 + b*x^3 + c*x^2 + d*x + e = 0. Returns the number of real rootsN<=5. The roots are returned in the first entries ofx, i.e.x[0]if N=1,x[0]andx[1]if N=2, etc.Note
Based on
poly34.h, by Khashin S.I. http://math.ivanovo.ac.ru/dalgebra/Khashin/index.html - khash2 (at) gmail.com- Parameters:
x – array of size 5