Skip to main content

hypot

Function hypot 

Source
pub fn hypot<F>(x: F, y: F) -> F
where F: Float,
Expand description

√(x² + y²), with no overflow or underflow in between. An infinite argument gives ∞, even beside NaN.