#NEWLINE# def _mul( self , other ) : #NEWLINE# #INDENT# 'See docstring of SeqBase._mul' #NEWLINE# if isinstance ( other , SeqPer ) : #NEWLINE# #INDENT# ( per1 , lper1 ) = ( self . periodical , self . period ) #NEWLINE# ( per2 , lper2 ) = ( other . periodical , other . period ) #NEWLINE# per_length = lcm ( lper1 , lper2 ) #NEWLINE# new_per = [ ] #NEWLINE# for x in range ( per_length ) : #NEWLINE# #INDENT# ele1 = per1 [ ( start % lper1 ) ] #NEWLINE# ele2 = per2 [ ( x % lper2 ) ] #NEWLINE# new_per . append ( ( ele1 * ele2 ) ) #NEWLINE# #UNINDENT# ( start , stop ) = self . _intersect_interval ( other ) #NEWLINE# return SeqPer ( new_per , ( self . variables [ 0 ] , start , stop ) )