Hypotenuse Function

Top  Previous  Next

Calculates the length of the hypotenuse of a right triangle, given the length of the two sides sideOne  and sideTwo .

 

Short form: "hypot".

 

Syntax

 

value = Hypotenuse( sideOne, sideTwo )

 

Parameters

sideOne

 

any expression used to define the length of the first side

sideTwo

 

any expression used to define the length of the second side

 

 

 

returns

 

the length of the hypotenuse

 

Examples

 

value = Hypotenuse( 3, 4 )         ' Returns 5

value = Hypotenuse( 9, 16 )        ' Returns 25