Compute the element-by-element square root of the sum of the squares of x and y.
This is equivalent to
sqrt (x.^2 + y.^2)
, but is calculated in a manner that
avoids overflows for large values of x or y.
hypot
can also be called with more than 2 arguments; in this case,
the arguments are accumulated from left to right:
hypot (hypot (x, y), z) hypot (hypot (hypot (x, y), z), w), etc.
Package: octave