where FACT is the factorial function and L. Euler proved that error=O(EXP(-X)/X).
IMPLEMENTATION
Unit: program
This program requires about one minute of processing time. There is an another way to obtain the value of the gamma constant: we can compute the gamma number only once and save its value into the text of the function. The following GAMMA_CONST function can be used to compute the first P decimal digits of gamma, for P=1,...,60.
CONNECTIONS
Euler's number e
Factorial Natural logarithm Exponential function Technique: Beforehand computed constants
Literature
Brent R. P. Ramanujan and Euler's Constant Computer Sciences Laboratory, Australian
National University, August 1993
|