Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ hypot(3m) — Ultrix-11 3.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

matherr(3m)

hypot(3m)

NAME

hypot, cabs − Euclidean distance function

SYNTAX

#include <math.h>

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

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

DESCRIPTION

The hypot function returns

sqrt(x ∗ x + y ∗ y),

taking precautions against unwarranted overflows.

DIAGNOSTICS

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

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

SEE ALSO

matherr(3m)

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