David
Farruggio

MathGenie

hypot

Square root of sum of squares (hypotenuse)

Syntax and Description

hypot(A,B) returns the result of the following equation, computed to avoid underflow and overflow:
C = sqrt(abs(A).^2 + abs(B).^2)

Back to functions