#NEWLINE# def fun( self , x , * args ) : #NEWLINE# #INDENT# self . nfev += 1 #NEWLINE# x = x [ 0 ] #NEWLINE# if ( args <= 3 ) : #NEWLINE# #INDENT# return ( ( x - 2.0 ) ** 2.0 ) #NEWLINE# #UNINDENT# return ( ( 2 * log ( ( x - 2.0 ) ) ) + 1 )