Main MRPT website > C++ reference for MRPT 1.5.7
polynom_solver.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Functions

int solve_deg2 (double a, double b, double c, double &x1, double &x2)

int solve_deg3 (double a, double b, double c, double d, double &x0, double &x1, double &x2)
Reference : Eric W. More...

int solve_deg4 (double a, double b, double c, double d, double e, double &x0, double &x1, double &x2, double &x3)
Reference : Eric W. More...

## ◆ solve_deg2()

 int solve_deg2 ( double a, double b, double c, double & x1, double & x2 )

Definition at line 18 of file polynom_solver.cpp.

Referenced by solve_deg3().

## ◆ solve_deg3()

 int solve_deg3 ( double a, double b, double c, double d, double & x0, double & x1, double & x2 )

Reference : Eric W.

Weisstein. "Cubic Equation." From MathWorld–A Wolfram Web Resource. http://mathworld.wolfram.com/CubicEquation.html

Returns
Number of real roots found.

Definition at line 42 of file polynom_solver.cpp.

References CV_PI, R, and solve_deg2().

Referenced by solve_deg4().

## ◆ solve_deg4()

 int solve_deg4 ( double a, double b, double c, double d, double e, double & x0, double & x1, double & x2, double & x3 )

Reference : Eric W.

Weisstein. "Quartic Equation." From MathWorld–A Wolfram Web Resource. http://mathworld.wolfram.com/QuarticEquation.html

Returns
Number of real roots found.

Definition at line 108 of file polynom_solver.cpp.

References mrpt::obs::gnss::b2, mrpt::obs::gnss::b3, R, and solve_deg3().

Referenced by mrpt::vision::pnp::p3p::solve_for_lengths().

 Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 8277875f6 Mon Jun 11 02:47:32 2018 +0200 at lun oct 28 01:50:49 CET 2019