#NEWLINE# def __init__( self , ctx , f , x0 , **kwargs ) : #NEWLINE# #INDENT# self . ctx = ctx #NEWLINE# if ( len ( x0 ) == 1 ) : #NEWLINE# #INDENT# self . x0 = x0 [ 0 ] #NEWLINE# self . x1 = ( self . x0 + 0.25 ) #NEWLINE# self . x2 = ( self . x1 + 0.25 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( len ( x0 ) == 2 ) : #NEWLINE# #INDENT# self . x0 = x0 [ 0 ] #NEWLINE# self . x1 = x0 [ 1 ] #NEWLINE# self . x2 = ( self . x1 + 0.25 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( len ( x0 ) == 3 ) : #NEWLINE# #INDENT# self . x0 = x0 [ 0 ] #NEWLINE# self . x1 = x0 [ 1 ] #NEWLINE# self . x2 = f [ 2 ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise ValueError ( ( 'expected 1, 2 or 3 starting points, got %i' % len ( x0 ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# self . f = f #NEWLINE# self . verbose = kwargs [ 'verbose' ]