English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Something I've been wondering about: what do you find is a good function to use for the approximation of f(x) = x factorial?
I've tried Stirling's approximation, and the Gamma function, which are both quite good; yet Stirling's is not as accurate, and the Gamma Function, while very cool, cannot be integrated nor differentiated due to the multiplicity of its equation and variables.
So...any suggestions for further exploration on the calculus of
f(x) = x!
?
Note: please do not simply link me to factorial explanation sites; I've already been to most of them.

2007-02-23 13:03:40 · 4 answers · asked by J Z 4 in Science & Mathematics Mathematics

4 answers

Stirling's formula is actually provable, like they show here, for example

http://www.sosmath.com/calculus/sequence/stirling/stirling.html

so i doubt very much you'll find a significant improvement on that. x^x * e^ (-x) is pretty much a given, and will be a part of any formula. sqrt(2*PI*n) seems like an insignificant constant that can be played with a bit

2007-02-23 13:39:30 · answer #1 · answered by iluxa 5 · 0 0

I'm presuming you already know what a factorial is since you've been to those sites. That being the case, are you wanting to us it in a computer program, or just find a short cut? More details would be helpful.

2007-02-23 21:11:47 · answer #2 · answered by Anonymous · 0 0

Try reading the relevant sections of Chapter 1, Volume 1
of Knuth's "Art of Computer Programming".
There you will find an excellent discussion about
x!. Good luck!

2007-02-23 21:41:18 · answer #3 · answered by steiner1745 7 · 0 0

Have you, by chance, read this page:

http://www.luschny.de/math/factorial/approx/SimpleCases.html

Especially the last set of equations at the bottom of the page? Perhaps, these will be helpful to you.

HTH

Charles

2007-02-23 21:26:15 · answer #4 · answered by Charles 6 · 0 0

fedest.com, questions and answers