passagemath-symbolics 10.6.37__cp310-cp310-musllinux_1_2_x86_64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. passagemath_symbolics/__init__.py +3 -0
  2. passagemath_symbolics-10.6.37.dist-info/METADATA +187 -0
  3. passagemath_symbolics-10.6.37.dist-info/RECORD +171 -0
  4. passagemath_symbolics-10.6.37.dist-info/WHEEL +5 -0
  5. passagemath_symbolics-10.6.37.dist-info/top_level.txt +3 -0
  6. sage/all__sagemath_symbolics.py +17 -0
  7. sage/calculus/all.py +14 -0
  8. sage/calculus/calculus.py +2826 -0
  9. sage/calculus/desolvers.py +1866 -0
  10. sage/calculus/predefined.py +51 -0
  11. sage/calculus/tests.py +225 -0
  12. sage/calculus/var.cpython-310-x86_64-linux-gnu.so +0 -0
  13. sage/calculus/var.pyx +401 -0
  14. sage/dynamics/all__sagemath_symbolics.py +6 -0
  15. sage/dynamics/complex_dynamics/all.py +5 -0
  16. sage/dynamics/complex_dynamics/mandel_julia.py +765 -0
  17. sage/dynamics/complex_dynamics/mandel_julia_helper.cpython-310-x86_64-linux-gnu.so +0 -0
  18. sage/dynamics/complex_dynamics/mandel_julia_helper.pyx +1035 -0
  19. sage/ext/all__sagemath_symbolics.py +1 -0
  20. sage/ext_data/kenzo/CP2.txt +45 -0
  21. sage/ext_data/kenzo/CP3.txt +349 -0
  22. sage/ext_data/kenzo/CP4.txt +4774 -0
  23. sage/ext_data/kenzo/README.txt +49 -0
  24. sage/ext_data/kenzo/S4.txt +20 -0
  25. sage/ext_data/magma/latex/latex.m +1021 -0
  26. sage/ext_data/magma/latex/latex.spec +1 -0
  27. sage/ext_data/magma/sage/basic.m +356 -0
  28. sage/ext_data/magma/sage/sage.spec +1 -0
  29. sage/ext_data/magma/spec +9 -0
  30. sage/geometry/all__sagemath_symbolics.py +8 -0
  31. sage/geometry/hyperbolic_space/all.py +5 -0
  32. sage/geometry/hyperbolic_space/hyperbolic_coercion.py +743 -0
  33. sage/geometry/hyperbolic_space/hyperbolic_constants.py +5 -0
  34. sage/geometry/hyperbolic_space/hyperbolic_geodesic.py +2409 -0
  35. sage/geometry/hyperbolic_space/hyperbolic_interface.py +206 -0
  36. sage/geometry/hyperbolic_space/hyperbolic_isometry.py +1082 -0
  37. sage/geometry/hyperbolic_space/hyperbolic_model.py +1502 -0
  38. sage/geometry/hyperbolic_space/hyperbolic_point.py +621 -0
  39. sage/geometry/riemannian_manifolds/all.py +7 -0
  40. sage/geometry/riemannian_manifolds/parametrized_surface3d.py +1632 -0
  41. sage/geometry/riemannian_manifolds/surface3d_generators.py +461 -0
  42. sage/interfaces/all__sagemath_symbolics.py +1 -0
  43. sage/interfaces/magma.py +3017 -0
  44. sage/interfaces/magma_free.py +92 -0
  45. sage/interfaces/maple.py +1397 -0
  46. sage/interfaces/mathematica.py +1345 -0
  47. sage/interfaces/mathics.py +1312 -0
  48. sage/interfaces/sympy.py +1398 -0
  49. sage/interfaces/sympy_wrapper.py +197 -0
  50. sage/interfaces/tides.py +938 -0
  51. sage/libs/all__sagemath_symbolics.py +6 -0
  52. sage/manifolds/all.py +7 -0
  53. sage/manifolds/calculus_method.py +555 -0
  54. sage/manifolds/catalog.py +437 -0
  55. sage/manifolds/chart.py +4019 -0
  56. sage/manifolds/chart_func.py +3419 -0
  57. sage/manifolds/continuous_map.py +2183 -0
  58. sage/manifolds/continuous_map_image.py +155 -0
  59. sage/manifolds/differentiable/affine_connection.py +2475 -0
  60. sage/manifolds/differentiable/all.py +1 -0
  61. sage/manifolds/differentiable/automorphismfield.py +1383 -0
  62. sage/manifolds/differentiable/automorphismfield_group.py +604 -0
  63. sage/manifolds/differentiable/bundle_connection.py +1445 -0
  64. sage/manifolds/differentiable/characteristic_cohomology_class.py +1840 -0
  65. sage/manifolds/differentiable/chart.py +1241 -0
  66. sage/manifolds/differentiable/curve.py +1028 -0
  67. sage/manifolds/differentiable/de_rham_cohomology.py +541 -0
  68. sage/manifolds/differentiable/degenerate.py +559 -0
  69. sage/manifolds/differentiable/degenerate_submanifold.py +1671 -0
  70. sage/manifolds/differentiable/diff_form.py +1658 -0
  71. sage/manifolds/differentiable/diff_form_module.py +1062 -0
  72. sage/manifolds/differentiable/diff_map.py +1315 -0
  73. sage/manifolds/differentiable/differentiable_submanifold.py +291 -0
  74. sage/manifolds/differentiable/examples/all.py +1 -0
  75. sage/manifolds/differentiable/examples/euclidean.py +2517 -0
  76. sage/manifolds/differentiable/examples/real_line.py +897 -0
  77. sage/manifolds/differentiable/examples/sphere.py +1186 -0
  78. sage/manifolds/differentiable/examples/symplectic_space.py +187 -0
  79. sage/manifolds/differentiable/examples/symplectic_space_test.py +40 -0
  80. sage/manifolds/differentiable/integrated_curve.py +4035 -0
  81. sage/manifolds/differentiable/levi_civita_connection.py +841 -0
  82. sage/manifolds/differentiable/manifold.py +4254 -0
  83. sage/manifolds/differentiable/manifold_homset.py +1826 -0
  84. sage/manifolds/differentiable/metric.py +3032 -0
  85. sage/manifolds/differentiable/mixed_form.py +1507 -0
  86. sage/manifolds/differentiable/mixed_form_algebra.py +559 -0
  87. sage/manifolds/differentiable/multivector_module.py +800 -0
  88. sage/manifolds/differentiable/multivectorfield.py +1520 -0
  89. sage/manifolds/differentiable/poisson_tensor.py +268 -0
  90. sage/manifolds/differentiable/pseudo_riemannian.py +755 -0
  91. sage/manifolds/differentiable/pseudo_riemannian_submanifold.py +1839 -0
  92. sage/manifolds/differentiable/scalarfield.py +1343 -0
  93. sage/manifolds/differentiable/scalarfield_algebra.py +472 -0
  94. sage/manifolds/differentiable/symplectic_form.py +910 -0
  95. sage/manifolds/differentiable/symplectic_form_test.py +220 -0
  96. sage/manifolds/differentiable/tangent_space.py +412 -0
  97. sage/manifolds/differentiable/tangent_vector.py +616 -0
  98. sage/manifolds/differentiable/tensorfield.py +4665 -0
  99. sage/manifolds/differentiable/tensorfield_module.py +963 -0
  100. sage/manifolds/differentiable/tensorfield_paral.py +2450 -0
  101. sage/manifolds/differentiable/tensorfield_paral_test.py +16 -0
  102. sage/manifolds/differentiable/vector_bundle.py +1728 -0
  103. sage/manifolds/differentiable/vectorfield.py +1717 -0
  104. sage/manifolds/differentiable/vectorfield_module.py +2445 -0
  105. sage/manifolds/differentiable/vectorframe.py +1832 -0
  106. sage/manifolds/family.py +270 -0
  107. sage/manifolds/local_frame.py +1490 -0
  108. sage/manifolds/manifold.py +3090 -0
  109. sage/manifolds/manifold_homset.py +452 -0
  110. sage/manifolds/operators.py +359 -0
  111. sage/manifolds/point.py +994 -0
  112. sage/manifolds/scalarfield.py +3718 -0
  113. sage/manifolds/scalarfield_algebra.py +629 -0
  114. sage/manifolds/section.py +3111 -0
  115. sage/manifolds/section_module.py +831 -0
  116. sage/manifolds/structure.py +229 -0
  117. sage/manifolds/subset.py +2764 -0
  118. sage/manifolds/subsets/all.py +1 -0
  119. sage/manifolds/subsets/closure.py +131 -0
  120. sage/manifolds/subsets/pullback.py +885 -0
  121. sage/manifolds/topological_submanifold.py +891 -0
  122. sage/manifolds/trivialization.py +733 -0
  123. sage/manifolds/utilities.py +1348 -0
  124. sage/manifolds/vector_bundle.py +1342 -0
  125. sage/manifolds/vector_bundle_fiber.py +332 -0
  126. sage/manifolds/vector_bundle_fiber_element.py +111 -0
  127. sage/matrix/all__sagemath_symbolics.py +1 -0
  128. sage/matrix/matrix_symbolic_dense.cpython-310-x86_64-linux-gnu.so +0 -0
  129. sage/matrix/matrix_symbolic_dense.pxd +6 -0
  130. sage/matrix/matrix_symbolic_dense.pyx +1022 -0
  131. sage/matrix/matrix_symbolic_sparse.cpython-310-x86_64-linux-gnu.so +0 -0
  132. sage/matrix/matrix_symbolic_sparse.pxd +6 -0
  133. sage/matrix/matrix_symbolic_sparse.pyx +1029 -0
  134. sage/modules/all__sagemath_symbolics.py +1 -0
  135. sage/modules/vector_callable_symbolic_dense.py +105 -0
  136. sage/modules/vector_symbolic_dense.py +116 -0
  137. sage/modules/vector_symbolic_sparse.py +118 -0
  138. sage/rings/all__sagemath_symbolics.py +4 -0
  139. sage/rings/asymptotic/all.py +6 -0
  140. sage/rings/asymptotic/asymptotic_expansion_generators.py +1485 -0
  141. sage/rings/asymptotic/asymptotic_ring.py +4858 -0
  142. sage/rings/asymptotic/asymptotics_multivariate_generating_functions.py +4153 -0
  143. sage/rings/asymptotic/growth_group.py +5373 -0
  144. sage/rings/asymptotic/growth_group_cartesian.py +1400 -0
  145. sage/rings/asymptotic/term_monoid.py +5237 -0
  146. sage/rings/function_field/all__sagemath_symbolics.py +2 -0
  147. sage/rings/polynomial/all__sagemath_symbolics.py +1 -0
  148. sage/symbolic/all.py +15 -0
  149. sage/symbolic/assumptions.py +985 -0
  150. sage/symbolic/benchmark.py +93 -0
  151. sage/symbolic/callable.py +459 -0
  152. sage/symbolic/complexity_measures.py +35 -0
  153. sage/symbolic/constants.py +1287 -0
  154. sage/symbolic/expression_conversion_algebraic.py +310 -0
  155. sage/symbolic/expression_conversion_sympy.py +317 -0
  156. sage/symbolic/expression_conversions.py +1713 -0
  157. sage/symbolic/function_factory.py +355 -0
  158. sage/symbolic/integration/all.py +1 -0
  159. sage/symbolic/integration/external.py +270 -0
  160. sage/symbolic/integration/integral.py +1115 -0
  161. sage/symbolic/maxima_wrapper.py +162 -0
  162. sage/symbolic/operators.py +267 -0
  163. sage/symbolic/random_tests.py +462 -0
  164. sage/symbolic/relation.py +1907 -0
  165. sage/symbolic/ring.cpython-310-x86_64-linux-gnu.so +0 -0
  166. sage/symbolic/ring.pxd +5 -0
  167. sage/symbolic/ring.pyx +1396 -0
  168. sage/symbolic/subring.py +1025 -0
  169. sage/symbolic/symengine.py +19 -0
  170. sage/symbolic/tests.py +40 -0
  171. sage/symbolic/units.py +1470 -0
@@ -0,0 +1,197 @@
1
+ # sage_setup: distribution = sagemath-symbolics
2
+ # sage.doctest: optional - sympy
3
+ """
4
+ Wrapper Class for Sage Sets as SymPy Sets
5
+ """
6
+
7
+ # ****************************************************************************
8
+ # Copyright (C) 2021 Matthias Koeppe
9
+ #
10
+ # This program is free software: you can redistribute it and/or modify
11
+ # it under the terms of the GNU General Public License as published by
12
+ # the Free Software Foundation, either version 2 of the License, or
13
+ # (at your option) any later version.
14
+ # https://www.gnu.org/licenses/
15
+ # ****************************************************************************
16
+
17
+ from sympy.core.basic import Basic
18
+ from sympy.core.decorators import sympify_method_args
19
+ from sympy.core.sympify import sympify
20
+ from sympy.sets.sets import Set
21
+
22
+
23
+ @sympify_method_args
24
+ class SageSet(Set):
25
+ r"""
26
+ Wrapper for a Sage set providing the SymPy Set API.
27
+
28
+ Parents in the category :class:`sage.categories.sets_cat.Sets`, unless
29
+ a more specific method is implemented, convert to SymPy by creating
30
+ an instance of this class.
31
+
32
+ EXAMPLES::
33
+
34
+ sage: F = Family([2, 3, 5, 7]); F
35
+ Family (2, 3, 5, 7)
36
+ sage: sF = F._sympy_(); sF # indirect doctest
37
+ SageSet(Family (2, 3, 5, 7))
38
+ sage: sF._sage_() is F
39
+ True
40
+ sage: bool(sF)
41
+ True
42
+ sage: len(sF)
43
+ 4
44
+ sage: list(sF)
45
+ [2, 3, 5, 7]
46
+ sage: sF.is_finite_set
47
+ True
48
+ """
49
+
50
+ def __new__(cls, sage_set):
51
+ r"""
52
+ Construct a wrapper for a Sage set.
53
+
54
+ TESTS::
55
+
56
+ sage: from sage.interfaces.sympy_wrapper import SageSet
57
+ sage: F = Set([1, 2]); F
58
+ {1, 2}
59
+ sage: sF = SageSet(F); sF
60
+ SageSet({1, 2})
61
+ """
62
+ return Basic.__new__(cls, sage_set)
63
+
64
+ def _sage_(self):
65
+ r"""
66
+ Return the underlying Sage set of the wrapper ``self``.
67
+
68
+ EXAMPLES::
69
+
70
+ sage: F = Family([1, 2])
71
+ sage: F is Family([1, 2])
72
+ False
73
+ sage: sF = F._sympy_(); sF
74
+ SageSet(Family (1, 2))
75
+ sage: sF._sage_() is F
76
+ True
77
+ """
78
+ return self._args[0]
79
+
80
+ @property
81
+ def is_empty(self):
82
+ r"""
83
+ Return whether the set ``self`` is empty.
84
+
85
+ EXAMPLES::
86
+
87
+ sage: Empty = Family([])
88
+ sage: sEmpty = Empty._sympy_()
89
+ sage: sEmpty.is_empty
90
+ True
91
+ """
92
+ return self._sage_().is_empty()
93
+
94
+ @property
95
+ def is_finite_set(self):
96
+ r"""
97
+ Return whether the set ``self`` is finite.
98
+
99
+ EXAMPLES::
100
+
101
+ sage: # needs sage.graphs
102
+ sage: W = WeylGroup(["A",1,1])
103
+ sage: sW = W._sympy_(); sW
104
+ SageSet(Weyl Group of type ['A', 1, 1] (as a matrix group acting on the root space))
105
+ sage: sW.is_finite_set
106
+ False
107
+ """
108
+ return self._sage_().is_finite()
109
+
110
+ @property
111
+ def is_iterable(self):
112
+ r"""
113
+ Return whether the set ``self`` is iterable.
114
+
115
+ EXAMPLES::
116
+
117
+ sage: # needs sage.graphs
118
+ sage: W = WeylGroup(["A",1,1])
119
+ sage: sW = W._sympy_(); sW
120
+ SageSet(Weyl Group of type ['A', 1, 1] (as a matrix group acting on the root space))
121
+ sage: sW.is_iterable
122
+ True
123
+ """
124
+ from sage.categories.enumerated_sets import EnumeratedSets
125
+ return self._sage_() in EnumeratedSets()
126
+
127
+ def __iter__(self):
128
+ r"""
129
+ Iterator for the set ``self``.
130
+
131
+ EXAMPLES::
132
+
133
+ sage: sPrimes = Primes()._sympy_(); sPrimes
134
+ SageSet(Set of all prime numbers: 2, 3, 5, 7, ...)
135
+ sage: iter_sPrimes = iter(sPrimes)
136
+ sage: next(iter_sPrimes), next(iter_sPrimes), next(iter_sPrimes) # needs sage.libs.pari
137
+ (2, 3, 5)
138
+ """
139
+ for element in self._sage_():
140
+ yield sympify(element)
141
+
142
+ def _contains(self, element):
143
+ """
144
+ Return whether ``element`` is an element of the set ``self``.
145
+
146
+ EXAMPLES::
147
+
148
+ sage: sPrimes = Primes()._sympy_(); sPrimes
149
+ SageSet(Set of all prime numbers: 2, 3, 5, 7, ...)
150
+ sage: 91 in sPrimes
151
+ False
152
+
153
+ sage: from sympy.abc import p
154
+ sage: sPrimes.contains(p)
155
+ Contains(p, SageSet(Set of all prime numbers: 2, 3, 5, 7, ...))
156
+
157
+ sage: p in sPrimes
158
+ Traceback (most recent call last):
159
+ ...
160
+ TypeError: did not evaluate to a bool: None
161
+ """
162
+ if element.is_symbol:
163
+ # keep symbolic
164
+ return None
165
+ return element in self._sage_()
166
+
167
+ def __len__(self):
168
+ """
169
+ Return the cardinality of the finite set ``self``.
170
+
171
+ EXAMPLES::
172
+
173
+ sage: # needs sage.graphs
174
+ sage: sB3 = WeylGroup(["B", 3])._sympy_(); sB3
175
+ SageSet(Weyl Group of type ['B', 3] (as a matrix group acting on the ambient space))
176
+ sage: len(sB3)
177
+ 48
178
+ """
179
+ return len(self._sage_())
180
+
181
+ def __str__(self):
182
+ """
183
+ Return the print representation of ``self``.
184
+
185
+ EXAMPLES::
186
+
187
+ sage: sPrimes = Primes()._sympy_()
188
+ sage: str(sPrimes) # indirect doctest
189
+ 'SageSet(Set of all prime numbers: 2, 3, 5, 7, ...)'
190
+ sage: repr(sPrimes)
191
+ 'SageSet(Set of all prime numbers: 2, 3, 5, 7, ...)'
192
+ """
193
+ # Provide this method so that sympy's printing code does not try to inspect
194
+ # the Sage object.
195
+ return f"SageSet({self._sage_()})"
196
+
197
+ __repr__ = __str__