Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Namespaces | Functions
MathPoly_Cubic.hxx File Reference
#include <MathUtils_Types.hxx>
#include <MathUtils_Core.hxx>
#include <MathUtils_Poly.hxx>
#include <MathPoly_Quadratic.hxx>
#include <cmath>

Namespaces

namespace  MathPoly
 Polynomial root finding algorithms.
 

Functions

MathUtils::PolyResult MathPoly::Cubic (double theA, double theB, double theC, double theD)
 Solve cubic equation: a*x^3 + b*x^2 + c*x + d = 0 Uses Cardano's method with Vieta substitution and trigonometric solution.