#NEWLINE# def dmp_trial_division( self , f , factors ) : #NEWLINE# #INDENT# factors = dmp_trial_division ( self . to_dense ( f ) , list ( map ( self . to_dense , factors ) ) , ( self . ngens - 1 ) , self . domain ) #NEWLINE# return [ ( self . from_dense ( g ) , k ) for ( g , k ) in factors ]