[SciPy-dev] genetic algorithm, number theory, filterdesign,zerofinding
Chuck.Harris at sdl.usu.edu
Thu Apr 11 17:50:13 CDT 2002
> -----Original Message-----
> From: Travis Oliphant [mailto:oliphant at ee.byu.edu]
> Sent: Thursday, April 11, 2002 2:45 PM
> To: scipy-dev at scipy.org
> Subject: RE: [SciPy-dev] genetic algorithm, number theory,
> > >
> > > I tried
> > > def f(x) :
> > > return 1 - x**2
> > >
> This works for me..
> fixed_point(f, 0.5, xtol=1e-12)
> >>> f(_)
> It looks like it found the place where f(x)=x pretty well.
I misunderstood what the routine did. Now I see that I should have used f(x)+ x
to find the zero 8) Thanks for the correction.
> Scipy-dev mailing list
> Scipy-dev at scipy.net
More information about the Scipy-dev