hypot

Absolute value of a complex number

double hypot (
        double x,
        double y
)

Arguments

x Real part
y Imaginary part

Return value

The square root of the sum of x2 and y2 is returned.

Explanation

The absolute value of the complex number (x+iy) is calculated and its value is returned.