Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ hypot(3M) — GL1 W2.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fpsignal(3C)

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

fpsignal(3C). 

Version 2.3  —  July 04, 1985

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026