Skip to main content

det_hypot

Function det_hypot 

Source
pub fn det_hypot(x: f64, y: f64) -> f64
Expand description

Deterministic hypot(x, y) = sqrt(x² + y²).

sqrt is a WASM intrinsic, so this is deterministic. Uses scaling to avoid overflow/underflow for extreme values.