Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ hypot(3M) — Reliant UNIX 5.44c4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

isnan(3C)

matherr(3M)

sqrt(3M)

math(5)

hypot(3M)                                                         hypot(3M)

NAME
     hypot - Euclidean distance function

SYNOPSIS
     cc [flag ...] file ... -lm [library ...]

     #include <math.h>

     double hypot(double x, double y);

DESCRIPTION
     hypot() computes the length of the hypotenuse of a right-angled triangle
     (see the Programmer's Reference Manual): sqrt(x * x + y * y)

RESULT
     When the correct value would overflow, hypot() returns HUGEVAL and
     sets errno to ERANGE.

     If x or y is NaN, errno is set to EDOM.

SEE ALSO
     isnan(3C), matherr(3M), sqrt(3M), math(5).

































Page 1                       Reliant UNIX 5.44                Printed 11/98

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