Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ hypot(3M) — svr4 — mips UMIPS RISC/os 5.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

matherr(3M)



HYPOT(3M-SVR4)      RISC/os Reference Manual       HYPOT(3M-SVR4)



NAME
     hypot - Euclidean distance function

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

     #include <math.h>

     double hypot (double x, double y);

DESCRIPTION
     hypot returns

          sqrt(x * x + y * y)

     taking precautions against unwarranted overflows.

SEE ALSO
     matherr(3M).

DIAGNOSTICS
     When the correct value would overflow, hypot returns HUGE
     and sets errno to ERANGE.

     Except when the -Xc compilation option is used, these
     error-handling procedures may be changed with the function
     matherr.  When the -Xa or -Xc compilation options are used,
     HUGE_VAL is returned instead of HUGE.



























                        Printed 11/19/92                   Page 1



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