AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
polynomial_solvers.hpp File Reference

Namespaces

 axom
 
 axom::numerics
 

Functions

int axom::numerics::solve_linear (const double *coeff, double *roots, int &numRoots)
 Find the real root for a linear equation of form \( ax + b = 0 \). More...
 
int axom::numerics::solve_quadratic (const double *coeff, double *roots, int &numRoots)
 For a quadratic equation of the form \( ax^2 + bx + c = 0 \), find real roots using the quadratic formula. More...
 
int axom::numerics::solve_cubic (const double *coeff, double *roots, int &numRoots)
 For a cubic equation of the form \( ax^3 + bx^2 + cx + d = 0 \), find real roots. More...