Function ruckig::roots::solve_cubic

Function Documentation

inline PositiveSet<double, 3> ruckig::roots::solve_cubic(double a, double b, double c, double d)

Calculate all roots of a*x^3 + b*x^2 + c*x + d = 0.