[PATCH] Add missing parenthesis to csqrt.3
Steve Kargl
sgk at troutmask.apl.washington.edu
Wed Oct 31 23:50:46 UTC 2018
The patch at the end of this email adds a missing ')'.
What is concerning is this somewhat dubious sentence
in the Results section:
The square root of 0 is +0 ± 0, where the imaginary parts
of the input and respective result have the same sign.
csqrt((0.0,0.0)) = (0.0,0.0)
csqrt((0.0,-0.0)) = (0.0,-0.0)
csqrt((-0.0,0.0)) = (0.0,0.0)
csqrt((-0.0,-0.0)) = (0.0,-0.0)
It seems the sentence should be
The square root of ±0 ± 0I is +0 ± 0I, where the imaginary parts
of the input and respective result have the same sign.
Index: csqrt.3
===================================================================
--- csqrt.3 (revision 339978)
+++ csqrt.3 (working copy)
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd March 30, 2008
+.Dd October 31, 2018
.Dt CSQRT 3
.Os
.Sh NAME
@@ -78,7 +78,7 @@
.Pp
For numbers with negative imaginary parts, the above special cases
apply given the identity:
-.Dl csqrt(conj(z) = conj(sqrt(z))
+.Dl csqrt(conj(z)) = conj(sqrt(z))
Note that the sign of \*(Na is indeterminate.
Also, if the real or imaginary part of the input is finite and
an \*(Na is generated, an invalid exception will be thrown.
--
Steve
More information about the freebsd-doc
mailing list