Home > lang > hyp 
 en fr de es it nl pl pt pt_BR mk sq hu cs tr ar fa id vi ko ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Search  Administration  
Documentation  
Warning! This page is not translated.  See english version 
Hyp
Hypotenuse = Hyp ( X AS Float , Y AS Float ) AS Float

This function returns Sqr((X ^ 2)+(Y ^ 2)).

This is the length of the hypotenuse of a right-angle triangle with sides of length X and Y, or the distance of the point (X,Y) from the origin.

This is the same function as Mag.

Example

PRINT Hyp(1, 1)

1.414213562373

PRINT Hyp(3, 4)

5

See also

Trigonometric Functions, Mag