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: Mon, 9 May 2016 13:52:27 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0

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

Hi,

I include my final proposal. It has corner cases first, then a series and
finally a continued fraction expansion. All tests gammainc(200,200,tail) are
passed with at most relative error 78*eps. I used all the ideas discussed here
(thanks Nir). Two points are still missing

1) accurate implementation of D(a,x) (seems hard to implement)
2) Matlab is *exact* for a integer. I found a close form
(http://mathworld.wolfram.com/IncompleteGammaFunction.html, formula (2)), but
can't implement without over/underflow.

(file #37113)
    _______________________________________________________

Additional Item Attachment:

File name: ngammainc.m                    Size:4 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]