man.bsd.lv manual page server

Manual Page Search Parameters
HYPOT(3M) HYPOT(3M)

hypot, cabs - euclidean distance

#include <math.h>

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

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

Hypot and cabs return

sqrt(x*x + y*y),

taking precautions against unwarranted overflows.

exp(3) for sqrt

UNIX-7