From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#64077: 30.0.50; Wrong definition of gamma function in calc.texi [PATCH] Date: Thu, 15 Jun 2023 09:54:26 +0200 Message-ID: References: <87pm5x4ac8.fsf@laptop.lockywolf.net> <83sfattboz.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30831"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: eliz@gnu.org, lockywolf@gmail.com To: 64077@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 15 09:55:20 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 1q9hpA-0007fA-6J for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Jun 2023 09:55:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q9hot-0001Kg-Qz; Thu, 15 Jun 2023 03:55:03 -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 1q9hos-0001KW-60 for bug-gnu-emacs@gnu.org; Thu, 15 Jun 2023 03:55: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 1q9hor-00082i-SK for bug-gnu-emacs@gnu.org; Thu, 15 Jun 2023 03:55:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q9hor-0001aw-Nc for bug-gnu-emacs@gnu.org; Thu, 15 Jun 2023 03:55:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Jun 2023 07:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64077 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 64077-submit@debbugs.gnu.org id=B64077.16868156756094 (code B ref 64077); Thu, 15 Jun 2023 07:55:01 +0000 Original-Received: (at 64077) by debbugs.gnu.org; 15 Jun 2023 07:54:35 +0000 Original-Received: from localhost ([127.0.0.1]:46084 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q9hoQ-0001aE-Rh for submit@debbugs.gnu.org; Thu, 15 Jun 2023 03:54:35 -0400 Original-Received: from smtp-out1.suse.de ([195.135.220.28]:54438) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q9hoO-0001Zv-Le for 64077@debbugs.gnu.org; Thu, 15 Jun 2023 03:54:33 -0400 Original-Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 10DCE21FDA; Thu, 15 Jun 2023 07:54:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1686815667; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=NYsSOEXzSxfnrlCW4m9OXCzzuW7ESaIZ5ICdC2L0XZg=; b=q/QeFjE0oPPIh2tfWTMZyR07/wKw+P5C1kwYNOPJW0G0rETqdoS4ifyNUVVpuzK959gL1Q i1K8xkmH69zKNLAUzj/CKVaaYbXer2jLynDCD0Q3SrIViB3xUyCrG/t59K3fFOLIF8k/Kg DwUopGaXuHJY7l0GZ3XbvWWVOIERDWE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1686815667; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=NYsSOEXzSxfnrlCW4m9OXCzzuW7ESaIZ5ICdC2L0XZg=; b=/RhnsDtK0sTEX0DezsLmT8UBkLL/4aPxOIQKdazubTvAgOjwgOGn9uPFZ6VPoSH7ucTaRc dO2/XGsUuFaV+pDw== Original-Received: from hawking.suse.de (unknown [10.168.4.11]) by relay2.suse.de (Postfix) with ESMTP id 02AF82C141; Thu, 15 Jun 2023 07:54:26 +0000 (UTC) Original-Received: by hawking.suse.de (Postfix, from userid 17005) id AAD3E4A037D; Thu, 15 Jun 2023 09:54:26 +0200 (CEST) In-Reply-To: <83sfattboz.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 15 Jun 2023 10:41:00 +0300") X-Yow: All of a sudden, I want to THROW OVER my promising ACTING CAREER, grow a LONG BLACK BEARD and wear a BASEBALL HAT!! ... Although I don't know WHY!! 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:263407 Archived-At: On Jun 15 2023, Eli Zaretskii wrote: >> 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.) 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."