Menu Riverview Church

HYPOT

Calculate the length of the hypotenuse of a right-angle triangle

Hypotenuse is equivalent to sqrt(x*x + y*y).

SYNTAX

hypot ( float $x , float $y ) : float

PARAMETERS

x

Length of first side

y

Length of second side

RETURN

Calculated length of the hypotenuse

EXAMPLES

1

5

2

5

PHP