#NEWLINE# def _eval_nseries( self , x , n , logx ) : #NEWLINE# #INDENT# i = ( self . args [ 0 ] . limit ( x , 0 ) / S . Pi ) #NEWLINE# if ( i and i . is_Integer ) : #NEWLINE# #INDENT# return self . rewrite ( cos ) . _eval_nseries ( x , n = n , logx = x ) #NEWLINE# #UNINDENT# return self . rewrite ( tan ) . _eval_nseries ( x , n = n , logx = logx )