Skip to main content

solve_linear

Function solve_linear 

Source
pub fn solve_linear(a: f64, b: f64) -> Roots
Expand description

Solves the linear equation ax + b = 0.

Returns Roots::Infinite when both coefficients are zero, and Roots::None when the equation has no finite real root.