def dmp_from_sympy(f, u, K):
 if (not u):
  return dup_from_sympy(f, K)
 v = (u - 1)
 return dmp_strip([dmp_from_sympy(c, v, K) for c in f], u)

def dmp_from_sympy ( f , u , K ) : if ( not u ) : return dup_from_sympy ( f , K ) v = ( u - 1 ) return dmp_strip ( [ dmp_from_sympy ( c , v , K ) for c in f ] , u )
convert the ground domain of f from sympy to k .