class_docstr: A generalized polynomial ring, with objects DMF. 
class_docstr_tok: ["A","generalized","polynomial","ring",",","with","objects","DMF","."]
docstr: Construct an element of ``self`` domain from ``a``. 
docstr_tok: ["Construct","an","element","of","``","self","``","domain","from","``","a","``","."]
code: def new(self, a):
      """Construct an element of ``self`` domain from ``a``."""
      res = self.dtype(a, self.dom, len(self.gens) - 1)
  
      # make sure res is actually in our ring
      if res.denom().terms(order=self.order)[0][0] != (0,) * len(
          self.gens
      ):
          from sympy.printing.str import sstr
  
          raise CoercionFailed(
              "denominator %s not allowed in %s" % (sstr(res), self)
          )
      return res
  
imports: from sympy.polys.agca.modules import FreeModulePolyRing
  from sympy.polys.domains.compositedomain import CompositeDomain
  from sympy.polys.domains.old_fractionfield import FractionField
  from sympy.polys.domains.ring import Ring
  from sympy.polys.orderings import monomial_key, build_product_order
  from sympy.polys.polyclasses import DMP, DMF
  from sympy.polys.polyerrors import GeneratorsNeeded, PolynomialError, CoercionFailed, ExactQuotientFailed, NotReversible
  from sympy.polys.polyutils import dict_from_basic, basic_from_dict, _dict_reorder
  from sympy.utilities import public
  from sympy.utilities.iterables import iterable
label_desc: Use image node_id 1 for calling the GeneralizedPolynomialRing obj's underlying member method code with example usage: obj.new(a) and returns: res