Skip to content

hypot

elfun · scripts/elfun/hypot.m

: h = hypot (x, y)

Square root of sum of squares without undue overflow or underflow.

Matching MATLAB R2026a, exactly two float (single/double, real or complex) arguments are required. Integers, logicals and character inputs are rejected. Complex arguments contribute their magnitudes.