summaryrefslogtreecommitdiffstats
path: root/lib/msun/man
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2008-03-30 20:07:15 +0000
committerdas <das@FreeBSD.org>2008-03-30 20:07:15 +0000
commit7e1a7394d99ee57106e7edda77a38a6cd01ecf9c (patch)
tree2a345bcdaf53081fe31c0bf645a82d3e926aba0e /lib/msun/man
parent4e563b6d98d0f990384486a8a9db7dadbf956de9 (diff)
downloadFreeBSD-src-7e1a7394d99ee57106e7edda77a38a6cd01ecf9c.zip
FreeBSD-src-7e1a7394d99ee57106e7edda77a38a6cd01ecf9c.tar.gz
Implement csqrtl().
Diffstat (limited to 'lib/msun/man')
-rw-r--r--lib/msun/man/csqrt.330
1 files changed, 19 insertions, 11 deletions
diff --git a/lib/msun/man/csqrt.3 b/lib/msun/man/csqrt.3
index 132b314..ef5445f 100644
--- a/lib/msun/man/csqrt.3
+++ b/lib/msun/man/csqrt.3
@@ -1,4 +1,4 @@
-.\" Copyright (c) 2007 David Schultz <das@FreeBSD.org>
+.\" Copyright (c) 2007-2008 David Schultz <das@FreeBSD.org>
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
@@ -24,12 +24,13 @@
.\"
.\" $FreeBSD$
.\"
-.Dd December 14, 2007
+.Dd March 30, 2008
.Dt CSQRT 3
.Os
.Sh NAME
.Nm csqrt ,
-.Nm csqrtf
+.Nm csqrtf ,
+.Nm csqrtl
.Nd complex square root functions
.Sh LIBRARY
.Lb libm
@@ -39,18 +40,22 @@
.Fn csqrt "double complex z"
.Ft float complex
.Fn csqrtf "float complex z"
+.Ft long double complex
+.Fn csqrtl "long double complex z"
.Sh DESCRIPTION
The
-.Fn csqrt
+.Fn csqrt ,
+.Fn csqrtf ,
and
-.Fn csqrtf
+.Fn csqrtl
functions compute the square root of
.Fa z
in the complex plane, with a branch cut along the negative real axis.
In other words,
-.Fn csqrt
+.Fn csqrt ,
+.Fn csqrtf ,
and
-.Fn csqrtf
+.Fn csqrtl
always return the square root whose real part is non-negative.
.Sh RETURN VALUES
These functions return the requested square root.
@@ -83,12 +88,15 @@ an \*(Na is generated, an invalid exception will be thrown.
.Xr math 3 ,
.Sh STANDARDS
The
-.Fn csqrt
+.Fn csqrt ,
+.Fn csqrtf ,
and
-.Fn csqrtf
+.Fn csqrtl
functions conform to
.St -isoC-99 .
.Sh BUGS
For
-.Fn csqrt ,
-inexact results are not correctly rounded in general.
+.Fn csqrt
+and
+.Fn csqrtl ,
+inexact results are not always correctly rounded.
OpenPOWER on IntegriCloud