public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Joseph Myers <joseph@codesourcery.com>
To: <libc-alpha@sourceware.org>
Subject: Correct clog10 documentation (bug 19673) [committed]
Date: Tue, 01 Nov 2016 18:40:00 -0000	[thread overview]
Message-ID: <alpine.DEB.2.20.1611011839200.21300@digraph.polyomino.org.uk> (raw)

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  <joseph@codesourcery.com>

	[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.

-- 
Joseph S. Myers
joseph@codesourcery.com

                 reply	other threads:[~2016-11-01 18:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.DEB.2.20.1611011839200.21300@digraph.polyomino.org.uk \
    --to=joseph@codesourcery.com \
    --cc=libc-alpha@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).