Function mrpt::math::solve_poly2
Defined in File poly_roots.h
Function Documentation
-
int mrpt::math::solve_poly2(double a, double b, double c, double &r1, double &r2) noexcept
Solves equation
a*x^2 + b*x + c = 0. Returns the number of real roots: either 0 or 2; or 1 if a=0 (in this case the root is in r1). r1, r2 are the roots. (r1<=r2)Note
Based on
poly34.h, by Khashin S.I. http://math.ivanovo.ac.ru/dalgebra/Khashin/index.html - khash2 (at) gmail.com