Re: Formula Stirlinga
- To: mathgroup at smc.vnet.net
- Subject: [mg130692] Re: Formula Stirlinga
- From: Daniel <dosadchy at its.jnj.com>
- Date: Fri, 3 May 2013 03:50:29 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Delivered-to: l-mathgroup@wolfram.com
- Delivered-to: mathgroup-outx@smc.vnet.net
- Delivered-to: mathgroup-newsendx@smc.vnet.net
> n = 1000; > N[n! - Sqrt[2*Pi*n]*(n/Exp[1])^n] = > 3.35308734163*10^2563 > Why does Stirling's formula works incorrect? > It works just fine. In[2]:= N[n!/(Sqrt[2*Pi*n]*(n/Exp[1])^n)] Out[2]= 1.00008 The result of the ratio should be between 1 and 1.0844...