MathGroup Archive 2013

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

Search the Archive

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



  • 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