After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 96739 - GAMMAINV
GAMMAINV
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: Analytics
git master
Other All
: Normal normal
: ---
Assigned To: Morten Welinder
Morten Welinder
Depends on:
Blocks:
 
 
Reported: 2002-10-24 19:11 UTC by Morten Welinder
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Morten Welinder 2002-10-24 19:11:58 UTC
GAMMAINV for p close to 1 returns an error.

A1=gammainv(b1,c1,d1)
B1=1-1e-13
C1=1
D1=1

(B2=1-B1 just to prove that B1 has not become 1.)

A1=#NUM! for me.  We can do better.
Comment 1 Morten Welinder 2002-10-24 19:42:07 UTC
Hmm...  This comes from R code (qgamma in mathfunc.c) which specifically
cuts off at 1e-12 from the endpoint.
Comment 2 Morten Welinder 2002-10-25 13:20:10 UTC
[From Ethan Glasser-Camp <glasse@rpi.edu>]

=gammainv(.3,.6,64)  --> #NUM!
=gammainv(.3,64,.6)  --> #NUM!

What gives?

Comment 3 Morten Welinder 2002-10-25 13:36:41 UTC
The latter stupidity has been fixed in cvs.  (1.1 and 1.0.)
Comment 4 Morten Welinder 2002-12-02 15:18:43 UTC
Fixed in 1.1 a while ago.