spinoso_math

Function hypot

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

Returns sqrt(x**2 + y**2), the hypotenuse of a right-angled triangle with sides x and y.

ยงExamples

use spinoso_math as math;
assert_eq!(math::hypot(3.0, 4.0), 5.0);