repl.txt (512B)
1 2 {{alias}}( x, y ) 3 Computes the hypotenuse avoiding overflow and underflow (single-precision). 4 5 If either argument is `NaN`, the function returns `NaN`. 6 7 Parameters 8 ---------- 9 x: number 10 First number. 11 12 y: number 13 Second number. 14 15 Returns 16 ------- 17 out: number 18 Hypotenuse. 19 20 Examples 21 -------- 22 > var h = {{alias}}( -5.0, 12.0 ) 23 13.0 24 > h = {{alias}}( NaN, 12.0 ) 25 NaN 26 > h = {{alias}}( -0.0, -0.0 ) 27 0.0 28 29 See Also 30 -------- 31