Contents Previous Next Subchapters

Square Root of Sum of Squares
Syntax x = hypot(ab)
See Also sqrt

Description
Computes the element-by-element sqrt(a^2 + b^2) where a and b are integer, real, or double-precision matrices with equal dimensions.

Example
     hypot({1., 2}, {3, 4})
returns
{
3.16228
4.47214
}