Open CASCADE Technology Reference Manual 8.0.2
Loading...
Searching...
No Matches
MathPoly_Quadratic.hxx File Reference
#include <MathUtils_Types.hxx>
#include <MathUtils_Core.hxx>
#include <cmath>

Namespaces

namespace  MathPoly
 Polynomial root finding algorithms.

Functions

MathUtils::PolyResult MathPoly::Linear (double theA, double theB)
 Solve linear equation: a*x + b = 0 Handles degenerate cases (a = 0).
MathUtils::PolyResult MathPoly::Quadratic (double theA, double theB, double theC)
 Solve quadratic equation: a*x^2 + b*x + c = 0 Uses numerically stable formulas to avoid catastrophic cancellation.