Exercise · Volume 1 · 1.2.5-5
Exercise 1.2.5-5
proved in Lean solution written
| Rating | 15 |
|---|---|
| Kind | K3, find a value: compute a number, a set or a closed form from the written solution |
| Section | Section 1.2.5 of Volume 1. Companion chapter: Permutations and factorials |
The task
Use Stirling's approximation with the extra factor to estimate .
The exact wording is in your copy of the book.
Hints
Open one hint at a time. Try the exercise again after each.
Hint 1
Put in the formula. First compute the value without the factor, then multiply by the factor.
Hint 2
Use and .
Solution
Show the solution
For the plain Stirling value is
The factor is . The estimate is
The exact value is . The error is about , a relative error of . The plain formula was low by , which is .
Check
Python with 15 digits gives for the plain value and for the refined value. The relative error of the refined value is , much smaller than the term that it adds. The next correction term in Stirling's series is , which is close to the error.
Remarks
The relative error of the plain formula is about , and the factor removes this term. The next term of the series is . The full proof of Stirling's formula is in Section 1.2.11.2.
This solution is checked, and a person has not reviewed it yet. The source.
In Lean
proved The statement and its proof are in Lean. The kernel accepts the proof, and it uses the standard axioms only.
- Problem:
TAOCP.S1_2_5.Ex5.statementaxioms: Classical.choice, Quot.sound, propext - Solution:
TAOCP.S1_2_5.Ex5.solvedaxioms: Classical.choice, Quot.sound, propext
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.