hypot
Square root of sum of squares (numerically stable).
Syntax
Section titled “Syntax”C = hypot(A, B)Description
Section titled “Description”Returns sqrt(A.^2 + B.^2) computed in a way that avoids overflow when either argument is large or underflow when both are small. Common in computing 2D distances and amplitudes.
Example
Section titled “Example”hypot(3, 4) % 5