Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

matherr(3M)

sqrt(3F)

HYPOT(3M)

NAME

hypot − Euclidean distance function

SYNOPSIS

#include <math.h>

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

HP-UX COMPATIBILITY

Level: HP-UX/RUN ONLY

Origin: System V

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).

SEE ALSO

matherr(3M), sqrt(3F). 

Hewlett-Packard  —  last mod. May 11, 2021

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