def sdm_monomial_mul(M, X):
 return ((M[0],) + monomial_mul(X, M[1:]))

def sdm_monomial_mul ( M , X ) : return ( ( M [ 0 ] , ) + monomial_mul ( X , M [ 1 : ] ) )
multiply tuple x representing a monomial of k[x] into the tuple m representing a monomial of f .