[SciPy-user] zeros of a function

fred fredmfp at gmail.com
Wed May 23 06:42:19 EDT 2007


lorenzo bolla a écrit :
> Hi all!
> I'm working with scipy.optimize.fsolve to find the zeros of a function.
> I'm wondering: is there an easy way to find ALL the zeros of a 
> function (within a given interval), instead of just ONE?
> With fsolve, an initial guess value x0 must be given, and I can try 
> many different x0s to "scan" the function in the interval: however, 
> this does not assure me that I'm not missing any zero.
> How would you solve this problem?
It depends of your function.
I wrote some stuff for spherical bessel and its derivative function, using
an iterative method. Thus, I'm sure I find out all the zeros.

-- 
http://scipy.org/FredericPetit




More information about the SciPy-User mailing list