[SciPy-user] optimize.bisect

Alan G Isaac aisaac@american....
Mon Nov 10 08:10:01 CST 2008


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



More information about the SciPy-user mailing list