Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ hypot(3) — AIX/RT 2.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

exp, log, log10, pow, sqrt

     hypot

Purpose

     Computes the euclidean distance function.

Library

     Math Library (libm.a)

Syntax

     #include <math.h>

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

Description

     The hypot subroutine  takes precautions against overflows
     while computing the value of:  sqrt(x(2) + y(2)).

     If the  correct value  does overflow, then  hypot returns
     HUGE and sets errno to ERANGE.

     You can change the error-handling procedures by supplying
     a matherr  subroutine.  See  "matherr" for  more informa-
     tion.

Related Information

     In this book:  "exp, log, log10, pow, sqrt."

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