pub fn stirlerr<P, E, V>(n: V) -> VExpand description
Stirling’s error $\mathrm{stirlerr}(n) = \ln n! - \left[(n + \tfrac12)\ln n - n + \tfrac12 \ln 2\pi\right]$,
for n >= STIRLERR_MIN, by the Bernoulli series
\frac{1}{12n} - \frac{1}{360n^3} + \frac{1}{1260n^5} - \frac{1}{1680n^7} + \frac{1}{1188n^9} - \dotswith stirlerr_terms terms. Cost is a reciprocal and a short Horner ladder. Below
STIRLERR_MIN the series does not converge to double precision (see there); this
function does not check, it just returns the truncated series.