All of lore.kernel.org
 help / color / mirror / Atom feed
From: Walter Harms <wharms@bfs.de>
To: "xenoantares@gmx.net" <xenoantares@gmx.net>,
	"mtk.manpages@gmail.com" <mtk.manpages@gmail.com>,
	"alx.manpages@gmail.com" <alx.manpages@gmail.com>
Cc: "linux-man@vger.kernel.org" <linux-man@vger.kernel.org>
Subject: AW: expm1(3p): Mathematical error in given example
Date: Thu, 11 Feb 2021 10:54:47 +0000	[thread overview]
Message-ID: <58d4a802d07e43cb9a819ddd5b974ed3@bfs.de> (raw)
In-Reply-To: <1169008777.20210211105918@gmx.net>

yes, this is wrong on the webpage but issems a converter bug.
when i look at the page in ascii i see:  ((1+x)**n-1)/x.

the same problem arises on other place like:
These functions shall compute ex-1.0.
should read: e**x-1.0

NTL: thx for info

 wh
________________________________________
Von: xenoantares@gmx.net <xenoantares@gmx.net>
Gesendet: Donnerstag, 11. Februar 2021 10:59:18
An: mtk.manpages@gmail.com; alx.manpages@gmail.com
Cc: linux-man@vger.kernel.org
Betreff: expm1(3p): Mathematical error in given example

  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


  reply	other threads:[~2021-02-11 10:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-11  9:59 expm1(3p): Mathematical error in given example xenoantares
2021-02-11 10:54 ` Walter Harms [this message]
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)

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=58d4a802d07e43cb9a819ddd5b974ed3@bfs.de \
    --to=wharms@bfs.de \
    --cc=alx.manpages@gmail.com \
    --cc=linux-man@vger.kernel.org \
    --cc=mtk.manpages@gmail.com \
    --cc=xenoantares@gmx.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.