Function kurbo::common::solve_quartic

source ·
pub fn solve_quartic(
    c0: f64,
    c1: f64,
    c2: f64,
    c3: f64,
    c4: f64
) -> ArrayVec<f64, 4>
Expand description

Find real roots of a quartic equation.

This is a fairly literal implementation of the method described in: Algorithm 1010: Boosting Efficiency in Solving Quartic Equations with No Compromise in Accuracy, Orellana and De Michele, ACM Transactions on Mathematical Software, Vol. 46, No. 2, May 2020.