This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug manual/19673] clog10 docs appear to be erroneous


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]