[SciPy-dev] genetic algorithm, number theory, filterdesign,zerofinding

Travis Oliphant oliphant at ee.byu.edu
Thu Apr 11 15:44:34 CDT 2002


> >
> > I tried
> > def f(x) :
> >     return 1 - x**2
> >
>

This works for me..

fixed_point(f, 0.5, xtol=1e-12)

0.6180339887498949

>>> f(_)

0.61803398874989479

It looks like it found the place where f(x)=x pretty well.

-Travis






More information about the Scipy-dev mailing list