[SciPy-user] optimize.bisect
Nils Wagner
nwagner at iam.uni-stuttgart.de
Mon Nov 10 09:26:34 EST 2008
On Mon, 10 Nov 2008 09:10:01 -0500
Alan G Isaac <aisaac at 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