[SciPy-user] optimize.bisect

Nils Wagner nwagner at iam.uni-stuttgart.de
Mon Nov 10 09:18:57 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)))]?
> What is the point of using an algorithm
> designed for continuous functions?
> 
> Alan Isaac
  
Hi Alan,

Thank you very much. I have overlooked your approach.

Nils



More information about the SciPy-User mailing list