From patchwork Tue Nov 1 18:39:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 17088 Received: (qmail 71465 invoked by alias); 1 Nov 2016 18:40:01 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 71394 invoked by uid 89); 1 Nov 2016 18:39:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.5 required=5.0 tests=AWL, BAYES_50, RCVD_IN_DNSWL_NONE, SPF_PASS, URIBL_RED autolearn=ham version=3.3.2 spammy=mathematical, Hx-languages-length:1328, descriptions, z X-HELO: relay1.mentorg.com Date: Tue, 1 Nov 2016 18:39:40 +0000 From: Joseph Myers To: Subject: Correct clog10 documentation (bug 19673) [committed] Message-ID: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) Bug 19673 reports that the documentation of clog10 is incorrect, both failing to include the division by log (10) in the imaginary part and, in the non-TeX version of the equation only, describing the LHS as log rather than log10. This patch fixes both issues. Note: I think it's appropriate that the LHS says log10 not clog10, and that the cexp and clog descriptions referred to in a comment in that bug report similarly say exp and log; this is a mathematical description not a literal C one. Tested for x86_64. Committed. 2016-11-01 Joseph Myers [BZ #19673] * manual/math.texi (Exponents and Logarithms): Correct description of clog10. diff --git a/manual/math.texi b/manual/math.texi index ccafb94..b4bb323 100644 --- a/manual/math.texi +++ b/manual/math.texi @@ -804,10 +804,10 @@ These functions return the base 10 logarithm of the complex value @var{z}. Mathematically, this corresponds to the value @ifnottex -@math{log (z) = log10 (cabs (z)) + I * carg (z)} +@math{log10 (z) = log10 (cabs (z)) + I * carg (z) / log (10)} @end ifnottex @tex -$$\log_{10}(z) = \log_{10}|z| + i \arg z$$ +$$\log_{10}(z) = \log_{10}|z| + i \arg z / \log (10)$$ @end tex These functions are GNU extensions.