applied-ai-018 commited on
Commit
85d0127
·
verified ·
1 Parent(s): fa6c897

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +1 -0
  2. llmeval-env/lib/python3.10/site-packages/nvidia/nccl/lib/libnccl.so.2 +3 -0
  3. llmeval-env/lib/python3.10/site-packages/sympy/polys/__pycache__/densebasic.cpython-310.pyc +0 -0
  4. llmeval-env/lib/python3.10/site-packages/sympy/polys/__pycache__/dispersion.cpython-310.pyc +0 -0
  5. llmeval-env/lib/python3.10/site-packages/sympy/polys/__pycache__/euclidtools.cpython-310.pyc +0 -0
  6. llmeval-env/lib/python3.10/site-packages/sympy/polys/__pycache__/fglmtools.cpython-310.pyc +0 -0
  7. llmeval-env/lib/python3.10/site-packages/sympy/polys/__pycache__/heuristicgcd.cpython-310.pyc +0 -0
  8. llmeval-env/lib/python3.10/site-packages/sympy/polys/__pycache__/solvers.cpython-310.pyc +0 -0
  9. llmeval-env/lib/python3.10/site-packages/sympy/polys/benchmarks/__init__.py +0 -0
  10. llmeval-env/lib/python3.10/site-packages/sympy/polys/benchmarks/__pycache__/__init__.cpython-310.pyc +0 -0
  11. llmeval-env/lib/python3.10/site-packages/sympy/polys/benchmarks/__pycache__/bench_galoispolys.cpython-310.pyc +0 -0
  12. llmeval-env/lib/python3.10/site-packages/sympy/polys/benchmarks/__pycache__/bench_groebnertools.cpython-310.pyc +0 -0
  13. llmeval-env/lib/python3.10/site-packages/sympy/polys/benchmarks/__pycache__/bench_solvers.cpython-310.pyc +0 -0
  14. llmeval-env/lib/python3.10/site-packages/sympy/polys/benchmarks/bench_galoispolys.py +66 -0
  15. llmeval-env/lib/python3.10/site-packages/sympy/polys/benchmarks/bench_groebnertools.py +25 -0
  16. llmeval-env/lib/python3.10/site-packages/sympy/polys/benchmarks/bench_solvers.py +0 -0
  17. llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__init__.py +57 -0
  18. llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/__init__.cpython-310.pyc +0 -0
  19. llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/algebraicfield.cpython-310.pyc +0 -0
  20. llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/characteristiczero.cpython-310.pyc +0 -0
  21. llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/complexfield.cpython-310.pyc +0 -0
  22. llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/compositedomain.cpython-310.pyc +0 -0
  23. llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/domain.cpython-310.pyc +0 -0
  24. llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/domainelement.cpython-310.pyc +0 -0
  25. llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/expressiondomain.cpython-310.pyc +0 -0
  26. llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/expressionrawdomain.cpython-310.pyc +0 -0
  27. llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/field.cpython-310.pyc +0 -0
  28. llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/finitefield.cpython-310.pyc +0 -0
  29. llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/fractionfield.cpython-310.pyc +0 -0
  30. llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/gaussiandomains.cpython-310.pyc +0 -0
  31. llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/gmpyfinitefield.cpython-310.pyc +0 -0
  32. llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/gmpyintegerring.cpython-310.pyc +0 -0
  33. llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/gmpyrationalfield.cpython-310.pyc +0 -0
  34. llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/groundtypes.cpython-310.pyc +0 -0
  35. llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/integerring.cpython-310.pyc +0 -0
  36. llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/modularinteger.cpython-310.pyc +0 -0
  37. llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/mpelements.cpython-310.pyc +0 -0
  38. llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/old_fractionfield.cpython-310.pyc +0 -0
  39. llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/old_polynomialring.cpython-310.pyc +0 -0
  40. llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/polynomialring.cpython-310.pyc +0 -0
  41. llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/pythonfinitefield.cpython-310.pyc +0 -0
  42. llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/pythonintegerring.cpython-310.pyc +0 -0
  43. llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/pythonrational.cpython-310.pyc +0 -0
  44. llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/pythonrationalfield.cpython-310.pyc +0 -0
  45. llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/quotientring.cpython-310.pyc +0 -0
  46. llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/rationalfield.cpython-310.pyc +0 -0
  47. llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/realfield.cpython-310.pyc +0 -0
  48. llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/ring.cpython-310.pyc +0 -0
  49. llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/simpledomain.cpython-310.pyc +0 -0
  50. llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/characteristiczero.py +15 -0
.gitattributes CHANGED
@@ -187,3 +187,4 @@ env-llmeval/lib/python3.10/site-packages/pyarrow/lib.cpython-310-x86_64-linux-gn
187
  env-llmeval/lib/python3.10/site-packages/pyarrow/libarrow_flight.so.1500 filter=lfs diff=lfs merge=lfs -text
188
  llmeval-env/lib/python3.10/site-packages/scipy/stats/_unuran/unuran_wrapper.cpython-310-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
189
  llmeval-env/lib/python3.10/site-packages/nvidia/cudnn/lib/libcudnn_adv_infer.so.8 filter=lfs diff=lfs merge=lfs -text
 
 
187
  env-llmeval/lib/python3.10/site-packages/pyarrow/libarrow_flight.so.1500 filter=lfs diff=lfs merge=lfs -text
188
  llmeval-env/lib/python3.10/site-packages/scipy/stats/_unuran/unuran_wrapper.cpython-310-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
189
  llmeval-env/lib/python3.10/site-packages/nvidia/cudnn/lib/libcudnn_adv_infer.so.8 filter=lfs diff=lfs merge=lfs -text
190
+ llmeval-env/lib/python3.10/site-packages/nvidia/nccl/lib/libnccl.so.2 filter=lfs diff=lfs merge=lfs -text
llmeval-env/lib/python3.10/site-packages/nvidia/nccl/lib/libnccl.so.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8278dcc6632df94762737b1c930050075738affba25e73cb1cac1b448472dc06
3
+ size 232685936
llmeval-env/lib/python3.10/site-packages/sympy/polys/__pycache__/densebasic.cpython-310.pyc ADDED
Binary file (39.7 kB). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/__pycache__/dispersion.cpython-310.pyc ADDED
Binary file (5.18 kB). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/__pycache__/euclidtools.cpython-310.pyc ADDED
Binary file (37.2 kB). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/__pycache__/fglmtools.cpython-310.pyc ADDED
Binary file (6.94 kB). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/__pycache__/heuristicgcd.cpython-310.pyc ADDED
Binary file (3.17 kB). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/__pycache__/solvers.cpython-310.pyc ADDED
Binary file (13.9 kB). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/benchmarks/__init__.py ADDED
File without changes
llmeval-env/lib/python3.10/site-packages/sympy/polys/benchmarks/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (195 Bytes). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/benchmarks/__pycache__/bench_galoispolys.cpython-310.pyc ADDED
Binary file (2.29 kB). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/benchmarks/__pycache__/bench_groebnertools.cpython-310.pyc ADDED
Binary file (1.37 kB). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/benchmarks/__pycache__/bench_solvers.cpython-310.pyc ADDED
Binary file (335 kB). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/benchmarks/bench_galoispolys.py ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Benchmarks for polynomials over Galois fields. """
2
+
3
+
4
+ from sympy.polys.galoistools import gf_from_dict, gf_factor_sqf
5
+ from sympy.polys.domains import ZZ
6
+ from sympy.core.numbers import pi
7
+ from sympy.ntheory.generate import nextprime
8
+
9
+
10
+ def gathen_poly(n, p, K):
11
+ return gf_from_dict({n: K.one, 1: K.one, 0: K.one}, p, K)
12
+
13
+
14
+ def shoup_poly(n, p, K):
15
+ f = [K.one] * (n + 1)
16
+ for i in range(1, n + 1):
17
+ f[i] = (f[i - 1]**2 + K.one) % p
18
+ return f
19
+
20
+
21
+ def genprime(n, K):
22
+ return K(nextprime(int((2**n * pi).evalf())))
23
+
24
+ p_10 = genprime(10, ZZ)
25
+ f_10 = gathen_poly(10, p_10, ZZ)
26
+
27
+ p_20 = genprime(20, ZZ)
28
+ f_20 = gathen_poly(20, p_20, ZZ)
29
+
30
+
31
+ def timeit_gathen_poly_f10_zassenhaus():
32
+ gf_factor_sqf(f_10, p_10, ZZ, method='zassenhaus')
33
+
34
+
35
+ def timeit_gathen_poly_f10_shoup():
36
+ gf_factor_sqf(f_10, p_10, ZZ, method='shoup')
37
+
38
+
39
+ def timeit_gathen_poly_f20_zassenhaus():
40
+ gf_factor_sqf(f_20, p_20, ZZ, method='zassenhaus')
41
+
42
+
43
+ def timeit_gathen_poly_f20_shoup():
44
+ gf_factor_sqf(f_20, p_20, ZZ, method='shoup')
45
+
46
+ P_08 = genprime(8, ZZ)
47
+ F_10 = shoup_poly(10, P_08, ZZ)
48
+
49
+ P_18 = genprime(18, ZZ)
50
+ F_20 = shoup_poly(20, P_18, ZZ)
51
+
52
+
53
+ def timeit_shoup_poly_F10_zassenhaus():
54
+ gf_factor_sqf(F_10, P_08, ZZ, method='zassenhaus')
55
+
56
+
57
+ def timeit_shoup_poly_F10_shoup():
58
+ gf_factor_sqf(F_10, P_08, ZZ, method='shoup')
59
+
60
+
61
+ def timeit_shoup_poly_F20_zassenhaus():
62
+ gf_factor_sqf(F_20, P_18, ZZ, method='zassenhaus')
63
+
64
+
65
+ def timeit_shoup_poly_F20_shoup():
66
+ gf_factor_sqf(F_20, P_18, ZZ, method='shoup')
llmeval-env/lib/python3.10/site-packages/sympy/polys/benchmarks/bench_groebnertools.py ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Benchmark of the Groebner bases algorithms. """
2
+
3
+
4
+ from sympy.polys.rings import ring
5
+ from sympy.polys.domains import QQ
6
+ from sympy.polys.groebnertools import groebner
7
+
8
+ R, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12 = ring("x1:13", QQ)
9
+
10
+ V = R.gens
11
+ E = [(x1, x2), (x2, x3), (x1, x4), (x1, x6), (x1, x12), (x2, x5), (x2, x7), (x3, x8),
12
+ (x3, x10), (x4, x11), (x4, x9), (x5, x6), (x6, x7), (x7, x8), (x8, x9), (x9, x10),
13
+ (x10, x11), (x11, x12), (x5, x12), (x5, x9), (x6, x10), (x7, x11), (x8, x12)]
14
+
15
+ F3 = [ x**3 - 1 for x in V ]
16
+ Fg = [ x**2 + x*y + y**2 for x, y in E ]
17
+
18
+ F_1 = F3 + Fg
19
+ F_2 = F3 + Fg + [x3**2 + x3*x4 + x4**2]
20
+
21
+ def time_vertex_color_12_vertices_23_edges():
22
+ assert groebner(F_1, R) != [1]
23
+
24
+ def time_vertex_color_12_vertices_24_edges():
25
+ assert groebner(F_2, R) == [1]
llmeval-env/lib/python3.10/site-packages/sympy/polys/benchmarks/bench_solvers.py ADDED
The diff for this file is too large to render. See raw diff
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__init__.py ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Implementation of mathematical domains. """
2
+
3
+ __all__ = [
4
+ 'Domain', 'FiniteField', 'IntegerRing', 'RationalField', 'RealField',
5
+ 'ComplexField', 'AlgebraicField', 'PolynomialRing', 'FractionField',
6
+ 'ExpressionDomain', 'PythonRational',
7
+
8
+ 'GF', 'FF', 'ZZ', 'QQ', 'ZZ_I', 'QQ_I', 'RR', 'CC', 'EX', 'EXRAW',
9
+ ]
10
+
11
+ from .domain import Domain
12
+ from .finitefield import FiniteField, FF, GF
13
+ from .integerring import IntegerRing, ZZ
14
+ from .rationalfield import RationalField, QQ
15
+ from .algebraicfield import AlgebraicField
16
+ from .gaussiandomains import ZZ_I, QQ_I
17
+ from .realfield import RealField, RR
18
+ from .complexfield import ComplexField, CC
19
+ from .polynomialring import PolynomialRing
20
+ from .fractionfield import FractionField
21
+ from .expressiondomain import ExpressionDomain, EX
22
+ from .expressionrawdomain import EXRAW
23
+ from .pythonrational import PythonRational
24
+
25
+
26
+ # This is imported purely for backwards compatibility because some parts of
27
+ # the codebase used to import this from here and it's possible that downstream
28
+ # does as well:
29
+ from sympy.external.gmpy import GROUND_TYPES # noqa: F401
30
+
31
+ #
32
+ # The rest of these are obsolete and provided only for backwards
33
+ # compatibility:
34
+ #
35
+
36
+ from .pythonfinitefield import PythonFiniteField
37
+ from .gmpyfinitefield import GMPYFiniteField
38
+ from .pythonintegerring import PythonIntegerRing
39
+ from .gmpyintegerring import GMPYIntegerRing
40
+ from .pythonrationalfield import PythonRationalField
41
+ from .gmpyrationalfield import GMPYRationalField
42
+
43
+ FF_python = PythonFiniteField
44
+ FF_gmpy = GMPYFiniteField
45
+
46
+ ZZ_python = PythonIntegerRing
47
+ ZZ_gmpy = GMPYIntegerRing
48
+
49
+ QQ_python = PythonRationalField
50
+ QQ_gmpy = GMPYRationalField
51
+
52
+ __all__.extend((
53
+ 'PythonFiniteField', 'GMPYFiniteField', 'PythonIntegerRing',
54
+ 'GMPYIntegerRing', 'PythonRational', 'GMPYRationalField',
55
+
56
+ 'FF_python', 'FF_gmpy', 'ZZ_python', 'ZZ_gmpy', 'QQ_python', 'QQ_gmpy',
57
+ ))
llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (1.7 kB). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/algebraicfield.cpython-310.pyc ADDED
Binary file (23 kB). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/characteristiczero.cpython-310.pyc ADDED
Binary file (827 Bytes). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/complexfield.cpython-310.pyc ADDED
Binary file (6.21 kB). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/compositedomain.cpython-310.pyc ADDED
Binary file (1.48 kB). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/domain.cpython-310.pyc ADDED
Binary file (35.8 kB). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/domainelement.cpython-310.pyc ADDED
Binary file (1.29 kB). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/expressiondomain.cpython-310.pyc ADDED
Binary file (9.95 kB). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/expressionrawdomain.cpython-310.pyc ADDED
Binary file (2.35 kB). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/field.cpython-310.pyc ADDED
Binary file (3.29 kB). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/finitefield.cpython-310.pyc ADDED
Binary file (6.94 kB). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/fractionfield.cpython-310.pyc ADDED
Binary file (7.16 kB). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/gaussiandomains.cpython-310.pyc ADDED
Binary file (20.4 kB). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/gmpyfinitefield.cpython-310.pyc ADDED
Binary file (903 Bytes). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/gmpyintegerring.cpython-310.pyc ADDED
Binary file (4.33 kB). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/gmpyrationalfield.cpython-310.pyc ADDED
Binary file (4.49 kB). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/groundtypes.cpython-310.pyc ADDED
Binary file (1.71 kB). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/integerring.cpython-310.pyc ADDED
Binary file (7.61 kB). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/modularinteger.cpython-310.pyc ADDED
Binary file (6.63 kB). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/mpelements.cpython-310.pyc ADDED
Binary file (5.07 kB). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/old_fractionfield.cpython-310.pyc ADDED
Binary file (7.52 kB). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/old_polynomialring.cpython-310.pyc ADDED
Binary file (17.6 kB). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/polynomialring.cpython-310.pyc ADDED
Binary file (7.91 kB). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/pythonfinitefield.cpython-310.pyc ADDED
Binary file (921 Bytes). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/pythonintegerring.cpython-310.pyc ADDED
Binary file (4.15 kB). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/pythonrational.cpython-310.pyc ADDED
Binary file (807 Bytes). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/pythonrationalfield.cpython-310.pyc ADDED
Binary file (3.31 kB). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/quotientring.cpython-310.pyc ADDED
Binary file (7.29 kB). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/rationalfield.cpython-310.pyc ADDED
Binary file (6.29 kB). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/realfield.cpython-310.pyc ADDED
Binary file (5.21 kB). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/ring.cpython-310.pyc ADDED
Binary file (4.24 kB). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/simpledomain.cpython-310.pyc ADDED
Binary file (782 Bytes). View file
 
llmeval-env/lib/python3.10/site-packages/sympy/polys/domains/characteristiczero.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Implementation of :class:`CharacteristicZero` class. """
2
+
3
+
4
+ from sympy.polys.domains.domain import Domain
5
+ from sympy.utilities import public
6
+
7
+ @public
8
+ class CharacteristicZero(Domain):
9
+ """Domain that has infinite number of elements. """
10
+
11
+ has_CharacteristicZero = True
12
+
13
+ def characteristic(self):
14
+ """Return the characteristic of this domain. """
15
+ return 0