Skip to main content

hypot3

Function hypot3 

Source
pub fn hypot3<T: Real>(a: T, b: T, c: T) -> T
Expand description

Overflow-safe sqrt(a^2 + b^2 + c^2), generic over reals.

ยงExamples

use mathverse_core::ops::hypot3;

assert_eq!(hypot3(3.0, 4.0, 12.0), 13.0);