Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ hypot(S) — OpenDesktop Software Development System 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

matherr(S)


 hypot(S)                       6 January 1993                       hypot(S)


 Name

    hypot - euclidean distance function

 Syntax


    cc  . . .  -lm


    #include <math.h>

    double hypot (x, y)
    double x, y;


 Description

    hypot returns

    sqrt(x * x + y * y),

    taking precautions against unwarranted overflows.

 Diagnostics

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

    These error-handling procedures may be changed with the function
    matherr(S).

 See also

    matherr(S)

 Standards conformance

    hypot is conformant with:
    AT&T SVID Issue 2;
    and X/Open Portability Guide, Issue 3, 1989.


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