Thursday, November 02, 2006
stirling's formula for factorials
- 80658175170943878571660636856403766975289505440883277824000000000000
which means that if every one on earth shuffled cards from now until the end of the universe,at a rate of 1000 shuffles per second,we wouldn't even scratch the surface in getting all possible orders.Whew!No wonder we use exclamation marks!
For any positive integer n we calculate "n factorial" by multiplying together all integers up to and including n, that is,
n!=1x2x3x....xn
1!=1 ; 2!=2 ; 3!=6 ; 4!=24 ; 5!=120
6!=720 ; 7!=5040 ; 8!=40320 ; 9!=362880 ; 10!=3628800
STIRLING'S FORMULA
Factorials start off reasonably small, but by 10! we are already in millions, and it doesn't take along until factorials are unwieldly behemoths like 52! above.Unfortunately there is no shortcut formula for n! ,you have to do all of the multiplication.On the other hand,there is a famous approximate formula,named after the Scottish mathematician James Stirling(1692-1770),that gives a pretty accurate idea about the size n!
n!=√2∏n*(n/e)ˆn