m2m模型翻译
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
369 B

6 months ago
  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)