This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: sf_gamma questions


Jonathan Leto writes:
 > Why is the error so large for gamma(x>18) ?

It's computed with an approximation so the relative error is the
appropriate measure. Note that 1/Gamma(19) is the first value which is
less than DBL_EPSILON.

 > Would it be possible to just return factorial(x-1) if gamma is
 > given an integer argument?

Sounds reasonable to me.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]