hypot

Function hypot 

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

Primal hypot.

ยงExamples

use chainrules::hypot;

assert_eq!(hypot(3.0_f64, 4.0_f64), 5.0);