Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

Intro(3M)

matherr(3M)

HYPOT(3M)  —  MATHEMATICAL FUNCTIONS

NAME

hypot − Euclidean distance

SYNOPSIS

#include <math.h>

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

DESCRIPTION

hypot returns

sqrt(x∗x + y∗y) ,

taking precautions against unwarranted IEEE exceptions.  On IEEE overflow, hypot may also set errno and call matherr(3M). 

hypot(x,y) and atan2(3M) convert rectangular coordinates (x,y) to polar (r,θ); hypot computes r, the modulus or radius.

SEE ALSO

Intro(3M), matherr(3M)

Sun Release 3.2  —  Last change: 6 October 1987

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