a guest Sep 24th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- def bisec(fun, a, b, eps=0.0001):
- c = (a+b)/2
- if np.sign(fun(a)) != np.sign(fun(c)):
- b = c
- a = c
RAW Paste Data