summaryrefslogtreecommitdiffstats
path: root/lib/msun/man/hypot.3
diff options
context:
space:
mode:
Diffstat (limited to 'lib/msun/man/hypot.3')
-rw-r--r--lib/msun/man/hypot.319
1 files changed, 14 insertions, 5 deletions
diff --git a/lib/msun/man/hypot.3 b/lib/msun/man/hypot.3
index 0098170..09d0da0 100644
--- a/lib/msun/man/hypot.3
+++ b/lib/msun/man/hypot.3
@@ -30,29 +30,38 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)hypot.3 6.7 (Berkeley) 5/6/91
-.\" $Id: hypot.3,v 1.3 1993/08/14 13:42:48 mycroft Exp $
+.\" $Id: hypot.3,v 1.1.1.1 1994/08/19 09:39:42 jkh Exp $
.\"
.Dd May 6, 1991
.Dt HYPOT 3
.Os BSD 4
.Sh NAME
.Nm hypot ,
-.Nm cabs
+.Nm hypotf ,
+.Nm cabs ,
+.Nm cabsf
.Nd euclidean distance and complex absolute value functions
.Sh SYNOPSIS
.Fd #include <math.h>
.Ft double
.Fn hypot "double x" "double y"
+.Ft float
+.Fn hypotf "float x" "float y"
.Fd struct {double x, y;} z;
.Ft double
.Fn cabs z
+.Fd struct {float x, y;} z;
+.Ft float
+.Fn cabsf z
.Sh DESCRIPTION
The
-.Fn hypot
-and
+.Fn hypot ,
+.Fn hypotf ,
.Fn cabs
+and
+.Fn cabsf
functions
-computes the
+compute the
sqrt(x*x+y*y)
in such a way that underflow will not happen, and overflow
occurs only if the final result deserves it.
OpenPOWER on IntegriCloud