Re: factorial
From: --CELKO-- <71062.1056_at_compuserve.com>
Date: 9 Jan 2002 15:09:58 -0800
Message-ID: <c0d87ec0.0201091509.6055dca1_at_posting.google.com>
Date: 9 Jan 2002 15:09:58 -0800
Message-ID: <c0d87ec0.0201091509.6055dca1_at_posting.google.com>
The reason for using the Gamma function is to avoid recursion if
possible.
A polynomial approximation with an error of less than 3*10^-7 for 0 <=
x <= 1 is:
Gamma(x+1) = 1 - 0.577191652 * x + 0.988205891 *x^2 - 0.897056937 *
x^3 + 0.918206857 * x^4 - 0.756704078 * x^5 + 0.482199394 * x^6 -
0.193527818 * x^7 + 0.035868343 * x^8