Gamma Approximator
written by Colin Joye 5/00
The series approaches the Euler-Mascheroni constant, gamma, shown below using
the approximation:
Where "lg(n)" is the base 2 logarithm of "n". Enter the number of loops to run
the approximation below. The approximation will take a minute at 100,000 loops or
greater (gives about 3 good decimals). For a full derivation of gamma, visit
http://mathworld.wolfram.com/Euler-MascheroniConstant.html.
|