#NEWLINE# def solve_nonlinear( self , params , unknowns , resids ) : #NEWLINE# #INDENT# 'f(x,y) = (x-3)^2 + xy + (y+4)^2 - 3' #NEWLINE# x = params [ 'x' ] #NEWLINE# y = params [ 'y' ] #NEWLINE# unknowns [ 'f_xy' ] = ( ( ( ( ( x - 3.0 ) ** 2 ) + ( x * y ) ) + ( ( y + 4.0 ) ** 2 ) ) - 3.0 )