HP Forums
Gamma function question - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: Gamma function question (/thread-4352.html)



Gamma function question - roadrunner - 07-13-2015 02:35 PM

Hello Everybody,

When I enter Gamma(0.25,0.25) on the HP Prime I get -1:
[attachment=2313]
In xcas I get 0.929323783277:
[attachment=2312]
Gamma(0.25,0.75) returns 0.362791168887 in both xcas and prime. Does anyone know why this is occurring and what to do get the same result in prime and xcas? This is on version 8151 emulator.

Road


RE: Gamma function question - Bill_G - 07-13-2015 04:34 PM

In the Help Menu the Gamma function is only a function of "x", where x is real.

Bill


RE: Gamma function question - parisse - 07-13-2015 04:48 PM

I recently made some changes in upper/lower incomplete Gamma code, trying with the latest source code, I get the same on the Prime emulator as on Xcas.


RE: Gamma function question - roadrunner - 07-13-2015 05:43 PM

(07-13-2015 04:34 PM)Bill_G Wrote:  In the Help Menu the Gamma function is only a function of "x", where x is real.

Bill

Apparently the incomplete gamma function wasn't documented because the code was ... incomplete. Smile


RE: Gamma function question - roadrunner - 07-13-2015 06:05 PM

Anyway, thanks for the replies. In the mean time I can do this:

[attachment=2316]