#NEWLINE# def _eval_as_leading_term( self , x ) : #NEWLINE# #INDENT# from sympy import Order #NEWLINE# arg = self . args [ 0 ] . as_leading_term ( x ) #NEWLINE# if ( ( x in arg . free_symbols ) and Order ( 1 , x ) . contains ( arg ) ) : #NEWLINE# #INDENT# return arg #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return self . func ( arg )