Stirling's Theorem - Versions Suitable For Calculators

Versions Suitable For Calculators

The approximation:

or equivalently,

can be obtained by rearranging Stirling's extended formula and observing a coincidence between the resultant power series and the Taylor series expansion of the hyperbolic sine function. This approximation is good to more than 8 decimal digits for z with a real part greater than 8. Robert H. Windschitl suggested it in 2002 for computing the Gamma function with fair accuracy on calculators with limited program or register memory.

Gergő Nemes proposed in 2007 an approximation which gives the same number of exact digits as the Windschitl approximation but is much simpler:

or equivalently,

An alternative approximation for ln n! was also given by Srinivasa Ramanujan (Ramanujan 1988)

Read more about this topic:  Stirling's Theorem

Famous quotes containing the words versions, suitable and/or calculators:

    The assumption must be that those who can see value only in tradition, or versions of it, deny man’s ability to adapt to changing circumstances.
    Stephen Bayley (b. 1951)

    The mode of clearing and planting is to fell the trees, and burn once what will burn, then cut them up into suitable lengths, roll into heaps, and burn again; then, with a hoe, plant potatoes where you can come at the ground between the stumps and charred logs; for a first crop the ashes suffice for manure, and no hoeing being necessary the first year. In the fall, cut, roll, and burn again, and so on, till the land is cleared; and soon it is ready for grain, and to be laid down.
    Henry David Thoreau (1817–1862)

    But the age of chivalry is gone. That of sophisters, economists, and calculators has succeeded; and the glory of Europe is extinguished forever.
    Edmund Burke (1729–1797)