#NEWLINE# def getFuncValue( self , x ) : #NEWLINE# #INDENT# val = 0.0 #NEWLINE# for ( i , l ) in enumerate ( self . lambdas ) : #NEWLINE# #INDENT# val += ( sin ( ( x * l ) ) * self . yScales [ i ] ) #NEWLINE# #UNINDENT# return val