simpledomain.py 369 B

123456789101112131415
  1. """Implementation of :class:`SimpleDomain` class. """
  2. from sympy.polys.domains.domain import Domain
  3. from sympy.utilities import public
  4. @public
  5. class SimpleDomain(Domain):
  6. """Base class for simple domains, e.g. ZZ, QQ. """
  7. is_Simple = True
  8. def inject(self, *gens):
  9. """Inject generators into this domain. """
  10. return self.poly_ring(*gens)