Skip to main content

linear_root

Function linear_root 

Source
pub fn linear_root(a: f64, b: f64) -> Option<f64>
Expand description

Returns the real root of ax + b = 0.

Returns None when a == 0.0.