From: Andreas Schwab <schwab@suse.de>
To: 64077@debbugs.gnu.org
Cc: eliz@gnu.org, lockywolf@gmail.com
Subject: bug#64077: 30.0.50; Wrong definition of gamma function in calc.texi [PATCH]
Date: Thu, 15 Jun 2023 09:54:26 +0200 [thread overview]
Message-ID: <mvm1qid40ul.fsf@suse.de> (raw)
In-Reply-To: <83sfattboz.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 15 Jun 2023 10:41:00 +0300")
On Jun 15 2023, Eli Zaretskii wrote:
>> From: Vladimir Nikishkin <lockywolf@gmail.com>
>> Date: Thu, 15 Jun 2023 12:25:04 +0800
>>
>> No Emacs code is affected, but the Gamma Function is defined by a
>> convergent integral, not a divergent one.
>>
>> Patch below:
>>
>> --- doc/misc/calc.texi
>> @@ -18614,7 +18614,7 @@ Advanced Math Functions
>> factorial function: @samp{gamma(n+1) = fact(n)}. For general complex
>> arguments the gamma function can be defined by the following definite
>> integral:
>> -@texline @math{\Gamma(a) = \int_0^\infty t^{a-1} e^t dt}.
>> +@texline @math{\Gamma(a) = \int_0^\infty t^{a-1} e^{-t} dt}.
>> @infoline @expr{gamma(a) = integ(t^(a-1) exp(t), t, 0, inf)}.
>> (The actual implementation uses far more efficient computational methods.)
>
> Thanks, fixed. (But the corresponding @infoline needed to be fixed as
> well, right? So I did that. And switched to using @sup there, to
> produce a nicer HTML output.)
Using @sup{..} is wrong here, though. The @infoline line is using calc
algebraic syntax.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
next prev parent reply other threads:[~2023-06-15 7:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-15 4:25 bug#64077: 30.0.50; Wrong definition of gamma function in calc.texi [PATCH] Vladimir Nikishkin
2023-06-15 7:41 ` Eli Zaretskii
2023-06-15 7:54 ` Andreas Schwab [this message]
2023-06-15 8:01 ` Eli Zaretskii
2023-06-15 8:16 ` Andreas Schwab
2023-06-15 8:39 ` Eli Zaretskii
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=mvm1qid40ul.fsf@suse.de \
--to=schwab@suse.de \
--cc=64077@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=lockywolf@gmail.com \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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.