xref: /csrg-svn/lib/libm/common_source/hypot.3 (revision 20346)
@(#)hypot.3 4.1 (Berkeley) 05/15/85

HYPOT 3M
.AT 3
NAME
hypot, cabs - Euclidean distance
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
exp(3) for sqrt