#NEWLINE# def apply_nonlinear( self , p , u , r ) : #NEWLINE# #INDENT# r [ 'phi' ] = ( ( np . sin ( u [ 'phi' ] ) / ( 1 - p [ 'a' ] ) ) - ( ( np . cos ( u [ 'phi' ] ) / p [ 'lambda_r' ] ) / ( 1 + p [ 'ap' ] ) ) )