Traktor/myenv/Lib/site-packages/sympy/polys/domains/simpledomain.py
2024-05-23 01:57:24 +02:00

16 lines
369 B
Python

"""Implementation of :class:`SimpleDomain` class. """
from sympy.polys.domains.domain import Domain
from sympy.utilities import public
@public
class SimpleDomain(Domain):
"""Base class for simple domains, e.g. ZZ, QQ. """
is_Simple = True
def inject(self, *gens):
"""Inject generators into this domain. """
return self.poly_ring(*gens)