HYPOT(3M) — Silicon Graphics
NAME
hypot − Euclidean distance function
SYNOPSIS
#include <math.h>
long float hypot (x, y)
long float x, y;
DESCRIPTION
Hypot returns
sqrt(x ∗ x + y ∗ y),
taking precautions against unwarranted overflows.
DIAGNOSTICS
Hypot checks its input for the illegal values NaN and ∞, raising the floating point exception INVALID_OP_A, and INVALID_OP_F2, respectively. If the input would cause hypot to overflow, a floating point exception with the type code OVERFL is signalled.
SEE ALSO
Version 2.1 — January 02, 1985