pub fn quadratic_solutions<T>(a: T, b: T, c: T, sqrt_discriminant: T) -> (T, T)
where T: Real,
Expand description

Returns the solutions to the quadratic equation.

Quadratic equation is -b +/- sqrt(b * b - 4 * a * c) / (2 * a). With the sqrt_discriminant defined as sqrt(b * b - 4 * a * c).

The purpose of this function is to minimize error in the process of finding solutions to the quadratic equation.