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
x
2
and
y
2
is returned.
Explanation
The absolute value of the complex number (
x
+i
y
) is calculated and its value is returned.