Nepedia
Back to Discover
Fluent Reader
🔢

Stirling's approximation

math Maturity 11-13 Next article →

In math, we often work with factorials. A factorial is what you get when you multiply a whole row of numbers together. These numbers grow very fast. They can quickly become too huge to write down easily.

Mplwp factorial gamma stirling
Mplwp factorial gamma stirling

To help with this, mathematicians use a special tool called Stirling's approximation. This tool is a way to make a very good guess for a factorial. It is called an asymptotic approximation. This means the guess gets better as the numbers get larger. Even for small numbers, the guess is quite accurate.

How does this math tool work? One way to find it is by using a sum. We can turn that sum into an integral, which is a way to find the area under a curve.

Stirling series relative error
Stirling series relative error

Mathematicians also use something called the Euler–Maclaurin formula to find the error. This formula helps us see how far off our guess might be. You can also use a method called Laplace's method to find the formula. Another way involves the Poisson distribution and the Central Limit Theorem. These methods all help us reach the same helpful result.

There is a long history behind this formula. Abraham de Moivre first discovered a similar rule in 1721. His rule was a bit less precise than what we use now. He used it to describe the natural logarithm of a constant. Later, a mathematician named James Stirling made a big contribution in 1730. He showed exactly what that constant was. He shared his work in a book called Methodus Differentialis. This book was published in London in 1730.

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

There are many important facts about this rule. For example, it can be used for the gamma function. The gamma function is a way to use factorials for many different types of numbers. Some people even found ways to make the rule work for calculators. Robert H. Windschitl suggested a way in 2002 to help calculators. Gergő Nemes proposed a simpler version in 2007. Another famous mathematician, Srinivasa Ramanujan, also wrote about these kinds of ideas in his lost notebook. These different versions help us solve hard problems quickly.

This math helps us in the real world of computers. In computer science, people use it to study sorting. It helps them find the worst-case lower bound for comparison sorting. This is a way to see how long a task might take.

Mplwp factorial gamma stirling
Mplwp factorial gamma stirling

It is like knowing the longest a trip might take before you leave. By using these guesses, scientists can plan better. It turns a hard, huge problem into something we can manage. This makes it a very important tool for many people.

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