Hypotenuse

Syntax


h = hypot(x, y)

Description


Returns sqrt(x*x + y*y).  Underflow or overflow or intermediate calculations are prevented.

Example


h = hypot(1.5, 3*x)