def dmp_inflate(f, M, u, K):
 if (not u):
  return dup_inflate(f, M[0], K)
 if all(((m == 1) for m in M)):
  return f
 else:
  return _rec_inflate(f, M, u, 0, K)

def dmp_inflate ( f , M , u , K ) : if ( not u ) : return dup_inflate ( f , M [ 0 ] , K ) if all ( ( ( m == 1 ) for m in M ) ) : return f else : return _rec_inflate ( f , M , u , 0 , K )
map y_i to x_i**k_i in a polynomial in k[x] .