This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug manual/19673] clog10 docs appear to be erroneous
- From: "mtk.manpages at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 19 Feb 2016 11:09:18 +0000
- Subject: [Bug manual/19673] clog10 docs appear to be erroneous
- Auto-submitted: auto-generated
- References: <bug-19673-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=19673
--- Comment #1 from Michael Kerrisk <mtk.manpages at gmail dot com> ---
I agree that the two expressions are not equivalent. If I have it right, then
both of the following are true:
clog10(z) = clog(z) / log(10)
clog10(z) = log10(cabs(c)) + I * carg(c) / log(10)
The first of those expressions appears in theclog10(3) man page, and I've just
added the second as well.
The line in the glibc manual:
clog(z) = log10 (cabs (z)) + I * carg (z)
seems wrong on two counts. First, the missing divisor for the second addend.
Second, the term to the left of the '=' should be "clog10(z)", should it not?
(This same confusion also seems to appear in the preceding descriptions of
other complex functions, namely cexp() and clog().)
--
You are receiving this mail because:
You are on the CC list for the bug.