xref: /original-bsd/old/libm/man/hypot.3 (revision 241757c4)
@(#)hypot.3 6.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(3M) for sqrt