Loading

HYPOT


math trigonometry
Since v1.0.0
Available on all platforms
See also

HYPOT function returns the radius r from the conversion of rectangular coordinates (x, y) to polar coordinates (r, theta), r = sqrt(x²+y²).

Signature

Examples

//x, y [ [ 3 4 ] [ -1 -1 ] [ -1 -0.00001 ] //-pi [ 0 0 ] [ MAXLONG MAXLONG ] ] <% DUP 0 GET 'x' STORE 1 GET 'y' STORE 'x y : ' $x TOSTRING + ' ' + $y TOSTRING + ' ==> ' + $y $x HYPOT TOSTRING + %> FOREACH