Lanczos approximation: Difference between revisions

Content deleted Content added
No edit summary
perhaps this is a better wording
Line 48:
==Simple implementation==
The following implementation in the [[Python (programming language)|Python programming language]] works for complex arguments and typically gives 15 correct decimal places.
Note that omitting the smallest coefficients does(in notpursuit result inof aspeed, fasterfor butexample) slightlygives lesstotally accurateinaccurate implementationresults; the coefficients must be recomputed from scratch for an expansion with fewer terms.
 
<syntaxhighlight lang="python">