Unix |
Unix v7 |
|
![]() |
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
![]() |
hypot(3m) | ![]() |