From owner-freebsd-doc@freebsd.org Wed Oct 31 23:50:46 2018 Return-Path: Delivered-To: freebsd-doc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4AF0F10D26B7 for ; Wed, 31 Oct 2018 23:50:46 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EE35B723E9 for ; Wed, 31 Oct 2018 23:50:45 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: by freefall.freebsd.org (Postfix) id DF150133BD; Wed, 31 Oct 2018 23:50:45 +0000 (UTC) Delivered-To: freebsd-docs@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [96.47.72.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id DB08F133BC for ; Wed, 31 Oct 2018 23:50:45 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "troutmask", Issuer "troutmask" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 99CEE723E8 for ; Wed, 31 Oct 2018 23:50:45 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.15.2/8.15.2) with ESMTPS id w9VNoi1e001905 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Wed, 31 Oct 2018 16:50:44 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.15.2/8.15.2/Submit) id w9VNoiwl001904 for freebsd-docs@freebsd.org; Wed, 31 Oct 2018 16:50:44 -0700 (PDT) (envelope-from sgk) Date: Wed, 31 Oct 2018 16:50:43 -0700 From: Steve Kargl To: freebsd-docs@freebsd.org Subject: [PATCH] Add missing parenthesis to csqrt.3 Message-ID: <20181031235043.GA1820@troutmask.apl.washington.edu> Reply-To: sgk@troutmask.apl.washington.edu MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.10.1 (2018-07-13) X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2018 23:50:46 -0000 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