Coverage for /usr/lib/python3/dist-packages/sympy/polys/domains/simpledomain.py: 86%

7 statements  

« prev     ^ index     » next       coverage.py v7.9.1, created at 2025-06-14 15:55 +0200

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

2 

3 

4from sympy.polys.domains.domain import Domain 

5from sympy.utilities import public 

6 

7@public 

8class SimpleDomain(Domain): 

9 """Base class for simple domains, e.g. ZZ, QQ. """ 

10 

11 is_Simple = True 

12 

13 def inject(self, *gens): 

14 """Inject generators into this domain. """ 

15 return self.poly_ring(*gens)