[SciPy-dev] Numerical stability of special functions (here: chebyu)

Norbert Nemec Norbert.Nemec.list at gmx.de
Tue Apr 25 12:08:34 CDT 2006


Gary Ruben wrote:
> Hi Norbert,
> No comment in answer to your question, but you can avoid the 'new' 
> variable by changing the loop to
>
>      for n in range(N):
>         current, previous = 2*x*current - previous, current
>   
Thanks! Nice idea. Even after two years intense work with Python, I
often forget the most obvious tricks... :-)




More information about the Scipy-dev mailing list