Lanczos approximation: Difference between revisions

Content deleted Content added
Polyester (talk | contribs)
No edit summary
Line 18:
:<math>A_g(z) = c_0 + \sum_{k=1}^{N} \frac{c_k}{z+k}</math>
 
Thus computing the gamma function becomes a matter of evaluating only a small number of [[elementary function]]s and multiplying by stored constants. The Lanczos approximation was popularized by ''[[Numerical Recipes]]'', according to which computing the gamma function becomes "not much more difficult than other built-in functions that we take for granted, such as sin&nbsp;''x'' or ''e''<sup>''x''</sup>". The method is also implemented in the [[GNU Scientific Library]], [[Boost (C++ libraries)|Boost]], [[CPython]] and [[musl]].
 
==Coefficients==