math/include/quadratic_equation

namespace feasst

Functions

template<typename T>
void quadratic_equation(const T &a, const T &b, const T &c, T *discriminant, T *root1, T *root2)

Solve the quadratic equation \(ax^2+bx+c=0\) If the discriminant is <0, do not find the roots.