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

Chuck Harris Chuck.Harris at sdl.usu.edu
Thu Apr 11 18:50:13 EDT 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,
> filterdesign,zerofinding
> 
> 
> > >
> > > 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.
> 
 
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.

Chuck

> 
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-dev
> 



More information about the SciPy-Dev mailing list