xref: /csrg-svn/lib/libm/common_source/hypot.3 (revision 21081)
HYPOT 3M "8 May 1985"
C 4
NAME
hypot, cabs - Euclidean distance, complex absolute value
SYNOPSIS
 #include <math.h> 

double hypot(x, y) double x, y;

double cabs(z) struct { double x, y;} z;

DESCRIPTION
Hypot and cabs return

sqrt(x*x+y*y),

taking precautions against unwarranted overflows.

SEE ALSO
intro(3M), sqrt(3M)
AUTHOR
W. Kahan