Stirling's Approximation

DOWNLOAD Mathematica Notebook Contribute to this entry

Stirling's approximation gives an approximate value for the factorial function n! or the gamma function Gamma(n) for n>>1. The approximation can most simply be derived for n an integer by approximating the sum over the terms of the factorial with anintegral, so that

lnn!=ln1+ln2+...+lnn
(1)
=sum_(k=1)^(n)lnk
(2)
 approx int_1^nlnxdx
(3)
=[xlnx-x]_1^n
(4)
=nlnn-n+1
(5)
 approx nlnn-n.


source :http://mathworld.wolfram.com/StirlingsApproximation.html


'MeGuro > mathe' 카테고리의 다른 글

The product of n consecutive integer is divisible by n!  (0) 2013.07.21
There , and