Source code for diofant.domains.simpledomain

"""Implementation of :class:`SimpleDomain` class. """

from .domain import Domain


__all__ = 'SimpleDomain',


[docs]class SimpleDomain(Domain): """Base class for simple domains, e.g. ZZ, QQ. """ is_Simple = True
[docs] def inject(self, *gens): """Inject generators into this domain. """ return self.poly_ring(*gens)