cc [ flag ... ] file ... -lm [ library ... ]
#include <math.h>
double hypot(double x, double y);
MT-Safe
taking precautions against unwarranted IEEE exceptions. On IEEE overflow, hypot(x,y) may also set errno and call matherr(3M) . hypot(±if,y) is +if for any y, even a NaN, and is exceptional only for a signaling NaN.
hypot(x,y) and atan2(y,x) (see trig(3M) ) convert rectangular coordinates (x,y) to polar (r,*h); hypot(x,y) computes r, the modulus or radius.