all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#64077: 30.0.50; Wrong definition of gamma function in calc.texi [PATCH]
@ 2023-06-15  4:25 Vladimir Nikishkin
  2023-06-15  7:41 ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Vladimir Nikishkin @ 2023-06-15  4:25 UTC (permalink / raw)
  To: 64077


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.)



-- 
Your sincerely,
Vladimir Nikishkin (MiEr, lockywolf)
(Laptop)





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

* bug#64077: 30.0.50; Wrong definition of gamma function in calc.texi [PATCH]
  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
  0 siblings, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2023-06-15  7:41 UTC (permalink / raw)
  To: Vladimir Nikishkin; +Cc: 64077-done

> 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.)

Closing.





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

* bug#64077: 30.0.50; Wrong definition of gamma function in calc.texi [PATCH]
  2023-06-15  7:41 ` Eli Zaretskii
@ 2023-06-15  7:54   ` Andreas Schwab
  2023-06-15  8:01     ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Andreas Schwab @ 2023-06-15  7:54 UTC (permalink / raw)
  To: 64077; +Cc: eliz, lockywolf

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."





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

* bug#64077: 30.0.50; Wrong definition of gamma function in calc.texi [PATCH]
  2023-06-15  7:54   ` Andreas Schwab
@ 2023-06-15  8:01     ` Eli Zaretskii
  2023-06-15  8:16       ` Andreas Schwab
  0 siblings, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2023-06-15  8:01 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: lockywolf, 64077

> From: Andreas Schwab <schwab@suse.de>
> Cc: eliz@gnu.org,  lockywolf@gmail.com
> Date: Thu, 15 Jun 2023 09:54:26 +0200
> 
> On Jun 15 2023, Eli Zaretskii wrote:
> 
> > 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.

I don't see how that follows.  Those look like function definitions to
me, and they are not inside @kbd (which would indicate something the
user should type into Calc).

So I don't think @sup is wrong there.





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

* bug#64077: 30.0.50; Wrong definition of gamma function in calc.texi [PATCH]
  2023-06-15  8:01     ` Eli Zaretskii
@ 2023-06-15  8:16       ` Andreas Schwab
  2023-06-15  8:39         ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Andreas Schwab @ 2023-06-15  8:16 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: lockywolf, 64077

On Jun 15 2023, Eli Zaretskii wrote:

> I don't see how that follows.  Those look like function definitions to
> me, and they are not inside @kbd (which would indicate something the
> user should type into Calc).

Exactly, in algrebraic notion.  This is a TeX-like notation that uses
the literal characters ^ and _.

> So I don't think @sup is wrong there.

exp is a function, not a variable.

-- 
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."





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

* bug#64077: 30.0.50; Wrong definition of gamma function in calc.texi [PATCH]
  2023-06-15  8:16       ` Andreas Schwab
@ 2023-06-15  8:39         ` Eli Zaretskii
  0 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2023-06-15  8:39 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: lockywolf, 64077

> From: Andreas Schwab <schwab@suse.de>
> Cc: lockywolf@gmail.com,  64077@debbugs.gnu.org
> Date: Thu, 15 Jun 2023 10:16:14 +0200
> 
> exp is a function, not a variable.

Fixed, thanks.





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

end of thread, other threads:[~2023-06-15  8:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2023-06-15  8:01     ` Eli Zaretskii
2023-06-15  8:16       ` Andreas Schwab
2023-06-15  8:39         ` Eli Zaretskii

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.