MathGroup Archive 2013

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Formula Stirlinga


> 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...



  • Prev by Date: Re: How to set Mathematica not return huge float numbers
  • Next by Date: Re: Formula Stirlinga
  • Previous by thread: Re: Formula Stirlinga
  • Next by thread: Re: Formula Stirlinga