Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

matherr(3M)



HYPOT(3M)                DOMAIN/IX SYS5                 HYPOT(3M)



NAME
     hypot - Euclidean distance function

USAGE
     #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(3M).

NOTE
     User programs that call this routine but do not link with
     libm.a will, instead, reference an older routine included in
     /lib/clib.  Support for the old (in clib) routines will be
     discontinued in a future release.  See intro(3M).

RELATED INFORMATION
     matherr(3M).



















Printed 12/4/86                                           HYPOT-1





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