Function geometric_algebra::polynomial::solve_quartic
source · pub fn solve_quartic(
coefficients: [f32; 5],
error_margin: f32
) -> (f32, Vec<Root>)
Expand description
Finds the discriminant and roots of a degree 4 polynomial.
0 = coefficients[4] * x.powi(4) + coefficients[3] * x.powi(3) + coefficients[2] * x.powi(2) + coefficients[1] * x + coefficients[0]