Skip to main content

eigen2

Function eigen2 

Source
pub fn eigen2(a: f64, b: f64, c: f64, d: f64) -> ((f64, f64), (f64, f64))
Expand description

Eigenvalues of a real 2×2 matrix \[\[a,b\\],\[c,d\]].

Returns (λ1, λ2) which may be complex encoded as (re±im). The imaginary parts are returned as a separate pair.