FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Forum index » Science and Technology » Math
Statistical approximations, calculator style (3)
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
Guest






PostPosted: Fri Mar 25, 2005 3:26 am    Post subject: Statistical approximations, calculator style (3) Reply with quote

A simple approximation to x!, valid for x>=0
--------------------------------------------
While there is no lack of simple approximations to the factorial, they
are generally not performing well for small positive or 0 arguments.
The following approximation to x! is valid for x>=0 (x not necessarily
an integer):

f(x) = t^(x+1/2) e^(-t) sqrt(2 pi)

where:

t = x + c + d/(x+1)

and the max. |rel. error| is for conveniently rounded versions of
(c,d):

<1.045E-5 for (c,d) = (0.788208,0.031083)
<1.060E-5 for (c,d) = (0.78821,0.03108)
<1.395E-5 for (c,d) = (0.7882,0.0311)

A little extra accuracy can be gained by adjusting the value 1 in the
denominator, but hardly worth the effort if we wish to keep the formula
simple.

Derivation:
The Stirling and Burnside approximations (regarding the latter see
contributions to this forum by David W. Cantrell) can be written on the
common form:

f(x) = (x+a)^(x+1/2) e^(-x-a) sqrt(2 pi)

where a=0 for Stirling's and a=1/2 for Burnside's formula.
The optimal value of a depends on x approximately as follows:

a = c + d/x

where (c,d) are constants.


Regards,

Knud Thomsen
(Aarhus, Denmark)
Back to top
Guest






PostPosted: Fri Mar 25, 2005 5:08 am    Post subject: Re: Statistical approximations, calculator style (3) Reply with quote

Obviously, in the 'Derivation' section, the formula for a should read:
'a = c + d/(x+1)' .
Knud Thomsen
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Fri Jan 09, 2009 11:33 pm | All times are GMT
Forum index » Science and Technology » Math
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Scientific calculator - clear breach ... Dave (from the UK) Symbolic 12 Tue Jul 11, 2006 2:18 pm
No new posts New high precision scientific calculator alpertron@hotmail.com Math 13 Tue Jul 04, 2006 9:26 pm
No new posts Online Graphing Calculator robby.walker@gmail.com Math 0 Thu Jun 22, 2006 9:43 pm
No new posts Universal Leverian Method of Approxim... Dobri Karagorgov Math 0 Thu Jun 15, 2006 9:16 am
No new posts Flume flow calculator BIGEYE Control 3 Sat Jun 03, 2006 5:11 am

Debt Consolidation | Credit Cards | Credit Card Advice | Loans | Advertising
Copyright © 2004-2005 DeniX Solutions SRL
Other DeniX Solutions sites: Electronics forum |  Medicine forum |  Unix/Linux blog |  Unix/Linux documentation |  Unix/Linux forums


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 3.2004s ][ Queries: 16 (2.8941s) ][ GZIP on - Debug on ]