Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #14389 > unrolled thread

Formula Stirlinga

Started bykarchevskymi@gmail.com
First post2013-05-02 01:40 +0000
Last post2013-05-03 07:50 +0000
Articles 3 — 3 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Formula Stirlinga karchevskymi@gmail.com - 2013-05-02 01:40 +0000
    Re: Formula Stirlinga Richard Fateman <fateman@cs.berkeley.edu> - 2013-05-03 07:49 +0000
    Re: Formula Stirlinga DC <b.gatessucks@gmail.com> - 2013-05-03 07:50 +0000

#14389 — Formula Stirlinga

Fromkarchevskymi@gmail.com
Date2013-05-02 01:40 +0000
SubjectFormula Stirlinga
Message-ID<klsg67$t99$1@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?

[toc] | [next] | [standalone]


#14397

FromRichard Fateman <fateman@cs.berkeley.edu>
Date2013-05-03 07:49 +0000
Message-ID<klvq6n$2d5$1@smc.vnet.net>
In reply to#14389
On 5/1/2013 6:40 PM, karchevskymi@gmail.com wrote:
> n = 1000;
> N[n! - Sqrt[2*Pi*n]*(n/Exp[1])^n] = 3.35308734163*10^2563
> Why does Stirling's formula works incorrect?
>
Mathematica has correctly computed what you specified.

You apparently have a misunderstanding of Stirling's formula,
but that is quite independent of Mathematica.


[toc] | [prev] | [next] | [standalone]


#14404

FromDC <b.gatessucks@gmail.com>
Date2013-05-03 07:50 +0000
Message-ID<klvq80$2e1$1@smc.vnet.net>
In reply to#14389
It looks better if you take the logs :

n = 1000;
N[Log[Factorial[n]] - (1/2 Log[2 Pi n] + n Log[n] - n)]

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web