Function mrpt::math::solve_poly5

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 roots N<=5. The roots are returned in the first entries of x, i.e. x[0] if N=1, x[0] and x[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