aboutsummaryrefslogtreecommitdiff
path: root/man/man3/hypot.3
blob: f8a3062c7195425fc7633d792da51a51a49c35ed (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 /sys/src/libc/port/hypot.c