1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
{{alias}}( x, y )
Computes the hypotenuse.
Parameters
----------
x: number
First number.
y: number
Second number.
Returns
-------
out: number
Hypotenuse.
Examples
--------
> var h = {{alias}}( -5.0, 12.0 )
13.0
// For a sufficiently large `x` and/or `y`, the function overflows:
> h = {{alias}}( 1.0e154, 1.0e154 )
Infinity
// For sufficiently small `x` and/or `y`, the function underflows:
> h = {{alias}}( 1e-200, 1.0e-200 )
0.0
See Also
--------
|