aboutsummaryrefslogtreecommitdiff
path: root/man/man3/hypot.3
blob: a539c72ed79552ac108f790dfa554894db885c3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.TH HYPOT 3
.SH NAME
hypot \- Euclidean distance
.SH SYNOPSIS
.B #include <u.h>
.br
.B #include <libc.h>
.PP
.nf
.B
double hypot(double x, double y)
.fi
.SH DESCRIPTION
.I Hypot
returns
.EX
	sqrt(x*x + y*y)
.EE
taking precautions against unwarranted overflows.
.SH SOURCE
.B /usr/local/plan9/src/libc/port/hypot.c