calculate hypotenuse

length of a hypotenuse = sqrt(a2 + b2)

In a right angled triangle, hypotenuse is the longest side, the side opposite the right angle.