Open rtoy opened 4 months ago
Imported from SourceForge on 2024-07-04 09:57:12 Created by macrakis on 2021-09-02 21:45:26 Original: https://sourceforge.net/p/maxima/bugs/3845/#25a0
The fix is to change floatp
to numberp
in line 5 of simpgamma
and add an errorsw clause there.
The problem is that float-numerical-eval-p
accepts not just floats, but also rationals.
Imported from SourceForge on 2024-07-04 09:57:16 Created by robert_dodier on 2021-09-02 22:04:44 Original: https://sourceforge.net/p/maxima/bugs/3845/#19ed
I see that gamma(-5.0)
triggers the message "undefined", as expected, likewise gamma(-5), float
. So far it seems only gamma(-5), numer
returns the spurious numerical value.
Imported from SourceForge on 2024-07-04 09:57:11 Created by tomasriker on 2021-09-02 09:18:07 Original: https://sourceforge.net/p/maxima/bugs/3845
The Gamma function is undefined for negative integers, and Maxima knows this:
But when we add the
numer
flag, we get some bogus(?) numerical answer: