SHARE
TWEET

Untitled

a guest Sep 24th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def bisec(fun, a, b, eps=0.0001):
  2.     while
  3.     c = (a+b)/2
  4.  
  5.     if np.sign(fun(a)) != np.sign(fun(c)):
  6.         b = c
  7.     else:
  8.         a = c
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top