Skip to main content

solve_quadratic

Function solve_quadratic 

Source
pub fn solve_quadratic(
    a: f64,
    b: f64,
    c: f64,
) -> Result<QuadraticRoots, LinearAlgebraError>
Expand description

Solve a·x² + b·x + c = 0 over the reals — thin facade over the engine solvers::polynomial::solve_quadratic (maps the engine error to this lib’s type).