class_docstr: A class for representing rational function fields. 
class_docstr_tok: ["A","class","for","representing","rational","function","fields","."]
code: def __init__(self, dom, *gens):
      if not gens:
          raise GeneratorsNeeded("generators not specified")
  
      lev = len(gens) - 1
      self.ngens = len(gens)
  
      self.zero = self.dtype.zero(lev, dom)
      self.one = self.dtype.one(lev, dom)
  
      self.domain = self.dom = dom
      self.symbols = self.gens = gens
  
imports: from sympy.polys.domains.field import Field
  from sympy.polys.domains.compositedomain import CompositeDomain
  from sympy.polys.polyclasses import DMF
  from sympy.polys.polyerrors import GeneratorsNeeded
  from sympy.polys.polyutils import dict_from_basic, basic_from_dict, _dict_reorder
  from sympy.utilities import public
label_desc: Use image node_id 1 to create a new FractionField object from inherited base classes: Field, CompositeDomain with example: obj = FractionField(dom)