[SciPy-user] optimize.bisect

Nils Wagner nwagner@iam.uni-stuttgart...
Mon Nov 10 08:26:34 CST 2008


On Mon, 10 Nov 2008 09:10:01 -0500
  Alan G Isaac <aisaac@american.edu> wrote:
> On 11/10/2008 8:51 AM Nils Wagner apparently wrote:
>> how can I use optimize.bisect if the function f is only 
>> given at discrete points instead of a continuous 
>>function 
>> like sin(x) ?
> 
> Do you have the points ``x``?
> Then shouldn't you just take
> x[np.argmin(np.abs(f(x)))]?

Your approach returns a single root.
How do I extract successive zeros of a sampled signal ?

Nils


More information about the SciPy-user mailing list