public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* expm1(3p): Mathematical error in given example
@ 2021-02-11  9:59 xenoantares
  2021-02-11 10:54 ` AW: " Walter Harms
  2021-02-11 15:49 ` Alejandro Colomar (man-pages)
  0 siblings, 2 replies; 7+ messages in thread
From: xenoantares @ 2021-02-11  9:59 UTC (permalink / raw)
  To: mtk.manpages, alx.manpages; +Cc: linux-man

  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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-02-14 17:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-11  9:59 expm1(3p): Mathematical error in given example xenoantares
2021-02-11 10:54 ` AW: " Walter Harms
2021-02-11 15:49 ` Alejandro Colomar (man-pages)
2021-02-12  9:41   ` Jakub Wilk
2021-02-14 11:34     ` Michael Kerrisk (man-pages)
2021-02-14 12:23       ` Alejandro Colomar (man-pages)
2021-02-14 17:27         ` Michael Kerrisk (man-pages)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox