Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.95 KB | None | 0 0
  1.  
  2. import math
  3.  
  4. def _1_2_3____ (_ ):
  5.     return ((_ -1 /3 )*(_ -1 /2 ))
  6.  
  7. # new approximation function
  8. def _1_2_3_444 (_ ,_22_2 ,_123_4_11 ):
  9.     return abs (_ -_22_2 )<=10 **-_123_4_11
  10.  
  11. def __ (__x_1__ ,__x__2_ ,____ ):
  12.     __0_0000_00000 =[]
  13.     __y_1 =____ (__x_1__ )
  14.     __y_2____ =____ (__x__2_ )
  15.  
  16.     if __y_1 ==0 :
  17.         __0_0000_00000 .append (__x_1__ )
  18.  
  19.     if __y_2____ ==0 :
  20.         __0_0000_00000 .append (__x__2_ )
  21.  
  22.     if __y_1 *__y_2____ <0 :
  23.         _x_ =(__x_1__ +__x__2_ )/2
  24.         _y =____ (_x_ )
  25.         if _1_2_3_444 (_y ,0 ,18 ):
  26.             print (_x_ )
  27.             __0_0000_00000 .append (_x_ )
  28.  
  29.         if __y_1 *_y <0 :
  30.             _1__3 =__ (__x_1__ ,_x_ ,____ )
  31.             print (_1__3 )
  32.             __0_0000_00000 .extend (_1__3 )
  33.  
  34.         if __y_2____ *_y <0 :
  35.             _1__3 =__ (_x_ ,__x__2_ ,____ )
  36.             print (_1__3 )
  37.             __0_0000_00000 .extend (_1__3 )
  38.  
  39.     return __0_0000_00000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement