help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gammainc, no small outputs


From: Anderson M. Winkler
Subject: gammainc, no small outputs
Date: Thu, 28 Apr 2016 16:00:23 +0100

Dear all,

Consider this:

Matlab: 

>> gammainc(60,6,'upper')
ans =
   6.1802e-20

Octave 4.0.0 (same for 3.8.2):

>> gammainc(60,6,'upper')
ans = 0

This is causing large problems, as norminv(6.1802e-20) = -9.0659 (the expected result), whereas norminv(0) = -Inf, and subsequent code crashes.

Could this be fixed to allow outputs smaller than about 1e-16? Thanks.

All the best,

Anderson

reply via email to

[Prev in Thread] Current Thread [Next in Thread]