From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#64077: 30.0.50; Wrong definition of gamma function in calc.texi [PATCH] Date: Thu, 15 Jun 2023 10:41:00 +0300 Message-ID: <83sfattboz.fsf@gnu.org> References: <87pm5x4ac8.fsf@laptop.lockywolf.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40946"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64077-done@debbugs.gnu.org To: Vladimir Nikishkin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 15 09:41:22 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q9hbe-000AO4-1d for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Jun 2023 09:41:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q9hbM-0008CX-Kw; Thu, 15 Jun 2023 03:41:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q9hbK-0008BZ-G7 for bug-gnu-emacs@gnu.org; Thu, 15 Jun 2023 03:41:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q9hbK-000567-7u for bug-gnu-emacs@gnu.org; Thu, 15 Jun 2023 03:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q9hbK-00019N-39 for bug-gnu-emacs@gnu.org; Thu, 15 Jun 2023 03:41:02 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Jun 2023 07:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 64077 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Mail-Followup-To: 64077@debbugs.gnu.org, eliz@gnu.org, lockywolf@gmail.com Original-Received: via spool by 64077-done@debbugs.gnu.org id=D64077.16868148464386 (code D ref 64077); Thu, 15 Jun 2023 07:41:01 +0000 Original-Received: (at 64077-done) by debbugs.gnu.org; 15 Jun 2023 07:40:46 +0000 Original-Received: from localhost ([127.0.0.1]:46059 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q9hb4-00018g-7x for submit@debbugs.gnu.org; Thu, 15 Jun 2023 03:40:46 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36892) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q9hb2-00018Q-Pf for 64077-done@debbugs.gnu.org; Thu, 15 Jun 2023 03:40:45 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q9hax-0004wZ-DU; Thu, 15 Jun 2023 03:40:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=7l0S5pYqpoJ0JjPCqEVE7ZBCddWKnu5LAbqG5mwtb+A=; b=eWZzW45HB2W+ FadJAk3p1PkXnxuF1Xj9zW3g0U8kxbC5Uhb6BSpWk/ImsuDdeMgcod4xRmM1shqUMACcdZ1IzsIMW WQ5iwi23KpCei2b6jZ/IsfyPsgMki+NquaHPIoSjqRLnlAMtXNJyHp8MAyj0tstvRpXOan7u3flOr dyxMX2EVDNyl7/FlynBpY+L/JU0drpQtCWpEgpV5CQOC9Za6oH7sm1U7F339dvH5SxBhrI49iYbUO 6kKdJa7uqTPjPucY7JIlVkeL8uhhcSDEbXPEBrg1F0FqjMelMTKxLoXF0khB0i6q3YKYQIpi+rxsK AW0xDug/fKokzyt1ZxkkOw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q9haw-0000GX-Uw; Thu, 15 Jun 2023 03:40:39 -0400 In-Reply-To: <87pm5x4ac8.fsf@laptop.lockywolf.net> (message from Vladimir Nikishkin on Thu, 15 Jun 2023 12:25:04 +0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:263405 Archived-At: > From: Vladimir Nikishkin > 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.) Closing.