def dmp_mul_term(f, c, i, u, K):
 if (not u):
  return dup_mul_term(f, c, i, K)
 v = (u - 1)
 if dmp_zero_p(f, u):
  return f
 if dmp_zero_p(c, v):
  return dmp_zero(u)
 else:
  return ([dmp_mul(cf, c, v, K) for cf in f] + dmp_zeros(i, v, K))

def dmp_mul_term ( f , c , i , u , K ) : if ( not u ) : return dup_mul_term ( f , c , i , K ) v = ( u - 1 ) if dmp_zero_p ( f , u ) : return f if dmp_zero_p ( c , v ) : return dmp_zero ( u ) else : return ( [ dmp_mul ( cf , c , v , K ) for cf in f ] + dmp_zeros ( i , v , K ) )
multiply f by c*x_0**i in k[x] .