Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def bisec(fun, a, b, eps=0.0001):
- while
- c = (a+b)/2
- if np.sign(fun(a)) != np.sign(fun(c)):
- b = c
- else:
- a = c
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement