44 static std::tuple<int, double, double>
quadraticSolve(
double a,
double b,
double c);
56 static std::tuple<int, double, double, double>
cubicSolve(
double a,
double b,
double c,
double d);
Utility functions for solving quadratic and cubic equations in real domain.
static std::tuple< int, double, double, double > cubicSolve(double a, double b, double c, double d)
Solver of cubic equation ax^3 + bx^2 + cx + d = 0.
static std::tuple< int, double, double > quadraticSolve(double a, double b, double c)
Solver of quadratic equation ax^2 + bx + c = 0.