Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ hypot(3m) — Ultrix WS 1.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

exp(3m)

hypot(3m)

NAME

hypot, cabs − Euclidean distance

SYNTAX

#include <math.h>

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

double cabs(z)
struct { double x, y;} z;

DESCRIPTION

The hypot and cabs functions return

sqrt(x*x + y*y),

taking precautions against unwarranted overflows. 

ENVIRONMENT

When your program is compiled using the System V environment, if the correct value would overflow, hypot returns HUGE and sets errno to ERANGE. 

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

The cabs subroutine does not exist in the System V environment. For sqrt, see exp(.).

SEE ALSO

exp(3m)

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