summaryrefslogtreecommitdiffstats
path: root/lib/msun/man/hypot.3
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-03-01 05:06:48 +0000
committerjkh <jkh@FreeBSD.org>1995-03-01 05:06:48 +0000
commit4d71750d42027edbc0501a36f71265917f601d76 (patch)
tree68d1372161050b27e72d171803683f7f1bc388eb /lib/msun/man/hypot.3
parentbfcb419e68efbbb96953c29a9b4c15c948b1e11c (diff)
downloadFreeBSD-src-4d71750d42027edbc0501a36f71265917f601d76.zip
FreeBSD-src-4d71750d42027edbc0501a36f71265917f601d76.tar.gz
Additions from Thomas Graichen to mention each functions' floating point
counterpart. Submitted by: Thomas Graichen <graichen@sirius.physik.fu-berlin.de>
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