Thread (7 messages) flat view 7 messages, 5 authors, 2021-02-14

Re: expm1(3p): Mathematical error in given example

From: Alejandro Colomar (man-pages) <hidden>
Date: 2021-02-11 15:54:09

Hi XA,

On 2/11/21 10:59 AM, xenoantares@gmx.net wrote:
  Hi there!

In the APPLICATION USAGE section of expm1(3p)[1] the given example is wrong:

===8<=== Snip =========================================

[..] calculations of ((1+x)n-1)/x, namely:

           expm1(n * log1p(x))/x

======== Snap ====================================>8===

Actually, both expressions are not equal, rather

 expm1(n * log1p(x))/x = ((1+x)**n - 1)/x

(with a fictional ** as power infix-operator) would be.


  Best regards
          -- XA

____
[1] As of version to be found at
    https://man7.org/linux/man-pages/man3/expm1.3p.html
--
XenoAntares
We don't maintain the source of the POSIX manual pages.  You could file
a bug to the Austin Group.  I checked that in expm1(3) that doesn't happen.

Thanks,

Alex

-- 
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help