octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #47800] gammainc(x, a, "upper") rounds down to


From: Marco Caliari
Subject: [Octave-bug-tracker] [bug #47800] gammainc(x, a, "upper") rounds down to zero if output is below eps
Date: Thu, 05 May 2016 12:47:36 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0

Follow-up Comment #9, bug #47800 (project octave):

Thanks Nir,

but that code is quite inaccurate, try, for instance, gamain(2,3).
I started to implement, but how many corner cases! I used Numerical Recipes in
Fortran77 (chapter 6.2). It is possible to use either a series or a continued
fraction. I include my result, with some tests (the last still fails). Matlab
is generally better for large input values, unless completely wrong.
scaledupper and scaledlower options are not finished, yet. You can test it in
Matlab (no endif...). The reference values in the tests were taken by
wolframalpha. Don't know how to continue: modification of slatec functions
(reliable, but forget x<0) or fixing the m-file.

(file #37075)
    _______________________________________________________

Additional Item Attachment:

File name: newgammainc.m                  Size:3 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47800>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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