Nepedia
Back to Discover
Independent Reader
🔢

Stirling's approximation

math Maturity 11-13 Next article →

Sometimes we need to find a value for a factorial. A factorial is a way of multiplying numbers in a row. These numbers grow very fast. They can become too large to write down easily.

Mplwp factorial gamma stirling
Mplwp factorial gamma stirling

We can use a special rule to guess these big numbers. This rule is called Stirling's formula. It is named after a man named James Stirling.

Abraham de Moivre found a similar rule first in 1721. His rule was not as exact as Stirling's. Stirling showed a more precise way in 1730. His rule is a very good guess. It works well even for small numbers.

Stirling error vs number of terms
Stirling error vs number of terms

In computer science, this rule is very useful. It helps people study how to sort items. There are even ways to use it for the gamma function. The gamma function is a way to extend factorials to other numbers. Some people found ways to make the rule work for calculators. These new ways help computers find answers very quickly.

Stirling series relative error
Stirling series relative error
162 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (3)
File:Mplwp factorial gamma stirling.svg
Mplwp factorial gamma stirling.svg
File:Stirling series relative error.svg
Stirling series relative error.svg
File:Stirling error vs number of terms.svg
Stirling error vs number of terms.svg
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.