ZTWHHH commited on
Commit
1700249
·
verified ·
1 Parent(s): 2c3c556

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 +4 -0
  2. openflamingo/lib/python3.10/site-packages/sympy/assumptions/__init__.py +18 -0
  3. openflamingo/lib/python3.10/site-packages/sympy/assumptions/__pycache__/sathandlers.cpython-310.pyc +0 -0
  4. openflamingo/lib/python3.10/site-packages/sympy/assumptions/facts.py +270 -0
  5. openflamingo/lib/python3.10/site-packages/sympy/assumptions/relation/equality.py +302 -0
  6. openflamingo/lib/python3.10/site-packages/sympy/assumptions/tests/__pycache__/test_assumptions_2.cpython-310.pyc +0 -0
  7. openflamingo/lib/python3.10/site-packages/sympy/assumptions/tests/__pycache__/test_matrices.cpython-310.pyc +0 -0
  8. openflamingo/lib/python3.10/site-packages/sympy/assumptions/tests/__pycache__/test_rel_queries.cpython-310.pyc +0 -0
  9. openflamingo/lib/python3.10/site-packages/sympy/assumptions/tests/__pycache__/test_wrapper.cpython-310.pyc +0 -0
  10. openflamingo/lib/python3.10/site-packages/sympy/assumptions/tests/test_context.py +39 -0
  11. openflamingo/lib/python3.10/site-packages/sympy/assumptions/tests/test_query.py +0 -0
  12. openflamingo/lib/python3.10/site-packages/sympy/assumptions/tests/test_refine.py +227 -0
  13. openflamingo/lib/python3.10/site-packages/sympy/assumptions/tests/test_rel_queries.py +172 -0
  14. openflamingo/lib/python3.10/site-packages/sympy/assumptions/tests/test_satask.py +378 -0
  15. openflamingo/lib/python3.10/site-packages/sympy/assumptions/tests/test_sathandlers.py +50 -0
  16. openflamingo/lib/python3.10/site-packages/sympy/polys/benchmarks/__pycache__/__init__.cpython-310.pyc +0 -0
  17. openflamingo/lib/python3.10/site-packages/sympy/polys/benchmarks/__pycache__/bench_galoispolys.cpython-310.pyc +0 -0
  18. openflamingo/lib/python3.10/site-packages/sympy/polys/benchmarks/bench_galoispolys.py +66 -0
  19. openflamingo/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/__init__.cpython-310.pyc +0 -0
  20. openflamingo/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/expressiondomain.cpython-310.pyc +0 -0
  21. openflamingo/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/gmpyintegerring.cpython-310.pyc +0 -0
  22. openflamingo/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/gmpyrationalfield.cpython-310.pyc +0 -0
  23. openflamingo/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/old_fractionfield.cpython-310.pyc +0 -0
  24. openflamingo/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/old_polynomialring.cpython-310.pyc +0 -0
  25. openflamingo/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/pythonfinitefield.cpython-310.pyc +0 -0
  26. openflamingo/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/simpledomain.cpython-310.pyc +0 -0
  27. openflamingo/lib/python3.10/site-packages/sympy/polys/matrices/__pycache__/__init__.cpython-310.pyc +0 -0
  28. openflamingo/lib/python3.10/site-packages/sympy/polys/matrices/__pycache__/_dfm.cpython-310.pyc +0 -0
  29. openflamingo/lib/python3.10/site-packages/sympy/polys/matrices/__pycache__/dense.cpython-310.pyc +0 -0
  30. openflamingo/lib/python3.10/site-packages/sympy/polys/matrices/__pycache__/dfm.cpython-310.pyc +0 -0
  31. openflamingo/lib/python3.10/site-packages/sympy/polys/matrices/__pycache__/domainscalar.cpython-310.pyc +0 -0
  32. openflamingo/lib/python3.10/site-packages/sympy/polys/matrices/__pycache__/eigen.cpython-310.pyc +0 -0
  33. openflamingo/lib/python3.10/site-packages/sympy/polys/matrices/__pycache__/linsolve.cpython-310.pyc +0 -0
  34. openflamingo/lib/python3.10/site-packages/sympy/polys/matrices/__pycache__/lll.cpython-310.pyc +0 -0
  35. openflamingo/lib/python3.10/site-packages/sympy/polys/matrices/__pycache__/rref.cpython-310.pyc +0 -0
  36. openflamingo/lib/python3.10/site-packages/sympy/polys/matrices/tests/__pycache__/test_xxm.cpython-310.pyc +0 -0
  37. openflamingo/lib/python3.10/site-packages/sympy/polys/numberfields/__init__.py +27 -0
  38. openflamingo/lib/python3.10/site-packages/sympy/polys/numberfields/exceptions.py +54 -0
  39. openflamingo/lib/python3.10/site-packages/sympy/polys/numberfields/resolvent_lookup.py +456 -0
  40. phi4/lib/libatomic.so.1.2.0 +3 -0
  41. phi4/lib/libncurses.a +3 -0
  42. phi4/lib/libtinfow.so +3 -0
  43. phi4/lib/libtinfow.so.6.4 +3 -0
  44. phi4/lib/python3.10/lib2to3/fixes/__pycache__/__init__.cpython-310.pyc +0 -0
  45. phi4/lib/python3.10/lib2to3/fixes/__pycache__/fix_dict.cpython-310.pyc +0 -0
  46. phi4/lib/python3.10/lib2to3/fixes/__pycache__/fix_exec.cpython-310.pyc +0 -0
  47. phi4/lib/python3.10/lib2to3/fixes/__pycache__/fix_exitfunc.cpython-310.pyc +0 -0
  48. phi4/lib/python3.10/lib2to3/fixes/__pycache__/fix_future.cpython-310.pyc +0 -0
  49. phi4/lib/python3.10/lib2to3/fixes/__pycache__/fix_getcwdu.cpython-310.pyc +0 -0
  50. phi4/lib/python3.10/lib2to3/fixes/__pycache__/fix_has_key.cpython-310.pyc +0 -0
.gitattributes CHANGED
@@ -738,3 +738,7 @@ phi4/bin/lzma filter=lfs diff=lfs merge=lfs -text
738
  phi4/bin/bunzip2 filter=lfs diff=lfs merge=lfs -text
739
  phi4/bin/x86_64-conda_cos7-linux-gnu-ld filter=lfs diff=lfs merge=lfs -text
740
  phi4/bin/unxz filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
738
  phi4/bin/bunzip2 filter=lfs diff=lfs merge=lfs -text
739
  phi4/bin/x86_64-conda_cos7-linux-gnu-ld filter=lfs diff=lfs merge=lfs -text
740
  phi4/bin/unxz filter=lfs diff=lfs merge=lfs -text
741
+ phi4/lib/libtinfow.so filter=lfs diff=lfs merge=lfs -text
742
+ phi4/lib/libatomic.so.1.2.0 filter=lfs diff=lfs merge=lfs -text
743
+ phi4/lib/libncurses.a filter=lfs diff=lfs merge=lfs -text
744
+ phi4/lib/libtinfow.so.6.4 filter=lfs diff=lfs merge=lfs -text
openflamingo/lib/python3.10/site-packages/sympy/assumptions/__init__.py ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ A module to implement logical predicates and assumption system.
3
+ """
4
+
5
+ from .assume import (
6
+ AppliedPredicate, Predicate, AssumptionsContext, assuming,
7
+ global_assumptions
8
+ )
9
+ from .ask import Q, ask, register_handler, remove_handler
10
+ from .refine import refine
11
+ from .relation import BinaryRelation, AppliedBinaryRelation
12
+
13
+ __all__ = [
14
+ 'AppliedPredicate', 'Predicate', 'AssumptionsContext', 'assuming',
15
+ 'global_assumptions', 'Q', 'ask', 'register_handler', 'remove_handler',
16
+ 'refine',
17
+ 'BinaryRelation', 'AppliedBinaryRelation'
18
+ ]
openflamingo/lib/python3.10/site-packages/sympy/assumptions/__pycache__/sathandlers.cpython-310.pyc ADDED
Binary file (10.4 kB). View file
 
openflamingo/lib/python3.10/site-packages/sympy/assumptions/facts.py ADDED
@@ -0,0 +1,270 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Known facts in assumptions module.
3
+
4
+ This module defines the facts between unary predicates in ``get_known_facts()``,
5
+ and supports functions to generate the contents in
6
+ ``sympy.assumptions.ask_generated`` file.
7
+ """
8
+
9
+ from sympy.assumptions.ask import Q
10
+ from sympy.assumptions.assume import AppliedPredicate
11
+ from sympy.core.cache import cacheit
12
+ from sympy.core.symbol import Symbol
13
+ from sympy.logic.boolalg import (to_cnf, And, Not, Implies, Equivalent,
14
+ Exclusive,)
15
+ from sympy.logic.inference import satisfiable
16
+
17
+
18
+ @cacheit
19
+ def get_composite_predicates():
20
+ # To reduce the complexity of sat solver, these predicates are
21
+ # transformed into the combination of primitive predicates.
22
+ return {
23
+ Q.real : Q.negative | Q.zero | Q.positive,
24
+ Q.integer : Q.even | Q.odd,
25
+ Q.nonpositive : Q.negative | Q.zero,
26
+ Q.nonzero : Q.negative | Q.positive,
27
+ Q.nonnegative : Q.zero | Q.positive,
28
+ Q.extended_real : Q.negative_infinite | Q.negative | Q.zero | Q.positive | Q.positive_infinite,
29
+ Q.extended_positive: Q.positive | Q.positive_infinite,
30
+ Q.extended_negative: Q.negative | Q.negative_infinite,
31
+ Q.extended_nonzero: Q.negative_infinite | Q.negative | Q.positive | Q.positive_infinite,
32
+ Q.extended_nonpositive: Q.negative_infinite | Q.negative | Q.zero,
33
+ Q.extended_nonnegative: Q.zero | Q.positive | Q.positive_infinite,
34
+ Q.complex : Q.algebraic | Q.transcendental
35
+ }
36
+
37
+
38
+ @cacheit
39
+ def get_known_facts(x=None):
40
+ """
41
+ Facts between unary predicates.
42
+
43
+ Parameters
44
+ ==========
45
+
46
+ x : Symbol, optional
47
+ Placeholder symbol for unary facts. Default is ``Symbol('x')``.
48
+
49
+ Returns
50
+ =======
51
+
52
+ fact : Known facts in conjugated normal form.
53
+
54
+ """
55
+ if x is None:
56
+ x = Symbol('x')
57
+
58
+ fact = And(
59
+ get_number_facts(x),
60
+ get_matrix_facts(x)
61
+ )
62
+ return fact
63
+
64
+
65
+ @cacheit
66
+ def get_number_facts(x = None):
67
+ """
68
+ Facts between unary number predicates.
69
+
70
+ Parameters
71
+ ==========
72
+
73
+ x : Symbol, optional
74
+ Placeholder symbol for unary facts. Default is ``Symbol('x')``.
75
+
76
+ Returns
77
+ =======
78
+
79
+ fact : Known facts in conjugated normal form.
80
+
81
+ """
82
+ if x is None:
83
+ x = Symbol('x')
84
+
85
+ fact = And(
86
+ # primitive predicates for extended real exclude each other.
87
+ Exclusive(Q.negative_infinite(x), Q.negative(x), Q.zero(x),
88
+ Q.positive(x), Q.positive_infinite(x)),
89
+
90
+ # build complex plane
91
+ Exclusive(Q.real(x), Q.imaginary(x)),
92
+ Implies(Q.real(x) | Q.imaginary(x), Q.complex(x)),
93
+
94
+ # other subsets of complex
95
+ Exclusive(Q.transcendental(x), Q.algebraic(x)),
96
+ Equivalent(Q.real(x), Q.rational(x) | Q.irrational(x)),
97
+ Exclusive(Q.irrational(x), Q.rational(x)),
98
+ Implies(Q.rational(x), Q.algebraic(x)),
99
+
100
+ # integers
101
+ Exclusive(Q.even(x), Q.odd(x)),
102
+ Implies(Q.integer(x), Q.rational(x)),
103
+ Implies(Q.zero(x), Q.even(x)),
104
+ Exclusive(Q.composite(x), Q.prime(x)),
105
+ Implies(Q.composite(x) | Q.prime(x), Q.integer(x) & Q.positive(x)),
106
+ Implies(Q.even(x) & Q.positive(x) & ~Q.prime(x), Q.composite(x)),
107
+
108
+ # hermitian and antihermitian
109
+ Implies(Q.real(x), Q.hermitian(x)),
110
+ Implies(Q.imaginary(x), Q.antihermitian(x)),
111
+ Implies(Q.zero(x), Q.hermitian(x) | Q.antihermitian(x)),
112
+
113
+ # define finity and infinity, and build extended real line
114
+ Exclusive(Q.infinite(x), Q.finite(x)),
115
+ Implies(Q.complex(x), Q.finite(x)),
116
+ Implies(Q.negative_infinite(x) | Q.positive_infinite(x), Q.infinite(x)),
117
+
118
+ # commutativity
119
+ Implies(Q.finite(x) | Q.infinite(x), Q.commutative(x)),
120
+ )
121
+ return fact
122
+
123
+
124
+ @cacheit
125
+ def get_matrix_facts(x = None):
126
+ """
127
+ Facts between unary matrix predicates.
128
+
129
+ Parameters
130
+ ==========
131
+
132
+ x : Symbol, optional
133
+ Placeholder symbol for unary facts. Default is ``Symbol('x')``.
134
+
135
+ Returns
136
+ =======
137
+
138
+ fact : Known facts in conjugated normal form.
139
+
140
+ """
141
+ if x is None:
142
+ x = Symbol('x')
143
+
144
+ fact = And(
145
+ # matrices
146
+ Implies(Q.orthogonal(x), Q.positive_definite(x)),
147
+ Implies(Q.orthogonal(x), Q.unitary(x)),
148
+ Implies(Q.unitary(x) & Q.real_elements(x), Q.orthogonal(x)),
149
+ Implies(Q.unitary(x), Q.normal(x)),
150
+ Implies(Q.unitary(x), Q.invertible(x)),
151
+ Implies(Q.normal(x), Q.square(x)),
152
+ Implies(Q.diagonal(x), Q.normal(x)),
153
+ Implies(Q.positive_definite(x), Q.invertible(x)),
154
+ Implies(Q.diagonal(x), Q.upper_triangular(x)),
155
+ Implies(Q.diagonal(x), Q.lower_triangular(x)),
156
+ Implies(Q.lower_triangular(x), Q.triangular(x)),
157
+ Implies(Q.upper_triangular(x), Q.triangular(x)),
158
+ Implies(Q.triangular(x), Q.upper_triangular(x) | Q.lower_triangular(x)),
159
+ Implies(Q.upper_triangular(x) & Q.lower_triangular(x), Q.diagonal(x)),
160
+ Implies(Q.diagonal(x), Q.symmetric(x)),
161
+ Implies(Q.unit_triangular(x), Q.triangular(x)),
162
+ Implies(Q.invertible(x), Q.fullrank(x)),
163
+ Implies(Q.invertible(x), Q.square(x)),
164
+ Implies(Q.symmetric(x), Q.square(x)),
165
+ Implies(Q.fullrank(x) & Q.square(x), Q.invertible(x)),
166
+ Equivalent(Q.invertible(x), ~Q.singular(x)),
167
+ Implies(Q.integer_elements(x), Q.real_elements(x)),
168
+ Implies(Q.real_elements(x), Q.complex_elements(x)),
169
+ )
170
+ return fact
171
+
172
+
173
+
174
+ def generate_known_facts_dict(keys, fact):
175
+ """
176
+ Computes and returns a dictionary which contains the relations between
177
+ unary predicates.
178
+
179
+ Each key is a predicate, and item is two groups of predicates.
180
+ First group contains the predicates which are implied by the key, and
181
+ second group contains the predicates which are rejected by the key.
182
+
183
+ All predicates in *keys* and *fact* must be unary and have same placeholder
184
+ symbol.
185
+
186
+ Parameters
187
+ ==========
188
+
189
+ keys : list of AppliedPredicate instances.
190
+
191
+ fact : Fact between predicates in conjugated normal form.
192
+
193
+ Examples
194
+ ========
195
+
196
+ >>> from sympy import Q, And, Implies
197
+ >>> from sympy.assumptions.facts import generate_known_facts_dict
198
+ >>> from sympy.abc import x
199
+ >>> keys = [Q.even(x), Q.odd(x), Q.zero(x)]
200
+ >>> fact = And(Implies(Q.even(x), ~Q.odd(x)),
201
+ ... Implies(Q.zero(x), Q.even(x)))
202
+ >>> generate_known_facts_dict(keys, fact)
203
+ {Q.even: ({Q.even}, {Q.odd}),
204
+ Q.odd: ({Q.odd}, {Q.even, Q.zero}),
205
+ Q.zero: ({Q.even, Q.zero}, {Q.odd})}
206
+ """
207
+ fact_cnf = to_cnf(fact)
208
+ mapping = single_fact_lookup(keys, fact_cnf)
209
+
210
+ ret = {}
211
+ for key, value in mapping.items():
212
+ implied = set()
213
+ rejected = set()
214
+ for expr in value:
215
+ if isinstance(expr, AppliedPredicate):
216
+ implied.add(expr.function)
217
+ elif isinstance(expr, Not):
218
+ pred = expr.args[0]
219
+ rejected.add(pred.function)
220
+ ret[key.function] = (implied, rejected)
221
+ return ret
222
+
223
+
224
+ @cacheit
225
+ def get_known_facts_keys():
226
+ """
227
+ Return every unary predicates registered to ``Q``.
228
+
229
+ This function is used to generate the keys for
230
+ ``generate_known_facts_dict``.
231
+
232
+ """
233
+ # exclude polyadic predicates
234
+ exclude = {Q.eq, Q.ne, Q.gt, Q.lt, Q.ge, Q.le}
235
+
236
+ result = []
237
+ for attr in Q.__class__.__dict__:
238
+ if attr.startswith('__'):
239
+ continue
240
+ pred = getattr(Q, attr)
241
+ if pred in exclude:
242
+ continue
243
+ result.append(pred)
244
+ return result
245
+
246
+
247
+ def single_fact_lookup(known_facts_keys, known_facts_cnf):
248
+ # Return the dictionary for quick lookup of single fact
249
+ mapping = {}
250
+ for key in known_facts_keys:
251
+ mapping[key] = {key}
252
+ for other_key in known_facts_keys:
253
+ if other_key != key:
254
+ if ask_full_inference(other_key, key, known_facts_cnf):
255
+ mapping[key].add(other_key)
256
+ if ask_full_inference(~other_key, key, known_facts_cnf):
257
+ mapping[key].add(~other_key)
258
+ return mapping
259
+
260
+
261
+ def ask_full_inference(proposition, assumptions, known_facts_cnf):
262
+ """
263
+ Method for inferring properties about objects.
264
+
265
+ """
266
+ if not satisfiable(And(known_facts_cnf, assumptions, proposition)):
267
+ return False
268
+ if not satisfiable(And(known_facts_cnf, assumptions, Not(proposition))):
269
+ return True
270
+ return None
openflamingo/lib/python3.10/site-packages/sympy/assumptions/relation/equality.py ADDED
@@ -0,0 +1,302 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Module for mathematical equality [1] and inequalities [2].
3
+
4
+ The purpose of this module is to provide the instances which represent the
5
+ binary predicates in order to combine the relationals into logical inference
6
+ system. Objects such as ``Q.eq``, ``Q.lt`` should remain internal to
7
+ assumptions module, and user must use the classes such as :obj:`~.Eq()`,
8
+ :obj:`~.Lt()` instead to construct the relational expressions.
9
+
10
+ References
11
+ ==========
12
+
13
+ .. [1] https://en.wikipedia.org/wiki/Equality_(mathematics)
14
+ .. [2] https://en.wikipedia.org/wiki/Inequality_(mathematics)
15
+ """
16
+ from sympy.assumptions import Q
17
+ from sympy.core.relational import is_eq, is_neq, is_gt, is_ge, is_lt, is_le
18
+
19
+ from .binrel import BinaryRelation
20
+
21
+ __all__ = ['EqualityPredicate', 'UnequalityPredicate', 'StrictGreaterThanPredicate',
22
+ 'GreaterThanPredicate', 'StrictLessThanPredicate', 'LessThanPredicate']
23
+
24
+
25
+ class EqualityPredicate(BinaryRelation):
26
+ """
27
+ Binary predicate for $=$.
28
+
29
+ The purpose of this class is to provide the instance which represent
30
+ the equality predicate in order to allow the logical inference.
31
+ This class must remain internal to assumptions module and user must
32
+ use :obj:`~.Eq()` instead to construct the equality expression.
33
+
34
+ Evaluating this predicate to ``True`` or ``False`` is done by
35
+ :func:`~.core.relational.is_eq`
36
+
37
+ Examples
38
+ ========
39
+
40
+ >>> from sympy import ask, Q
41
+ >>> Q.eq(0, 0)
42
+ Q.eq(0, 0)
43
+ >>> ask(_)
44
+ True
45
+
46
+ See Also
47
+ ========
48
+
49
+ sympy.core.relational.Eq
50
+
51
+ """
52
+ is_reflexive = True
53
+ is_symmetric = True
54
+
55
+ name = 'eq'
56
+ handler = None # Do not allow dispatching by this predicate
57
+
58
+ @property
59
+ def negated(self):
60
+ return Q.ne
61
+
62
+ def eval(self, args, assumptions=True):
63
+ if assumptions == True:
64
+ # default assumptions for is_eq is None
65
+ assumptions = None
66
+ return is_eq(*args, assumptions)
67
+
68
+
69
+ class UnequalityPredicate(BinaryRelation):
70
+ r"""
71
+ Binary predicate for $\neq$.
72
+
73
+ The purpose of this class is to provide the instance which represent
74
+ the inequation predicate in order to allow the logical inference.
75
+ This class must remain internal to assumptions module and user must
76
+ use :obj:`~.Ne()` instead to construct the inequation expression.
77
+
78
+ Evaluating this predicate to ``True`` or ``False`` is done by
79
+ :func:`~.core.relational.is_neq`
80
+
81
+ Examples
82
+ ========
83
+
84
+ >>> from sympy import ask, Q
85
+ >>> Q.ne(0, 0)
86
+ Q.ne(0, 0)
87
+ >>> ask(_)
88
+ False
89
+
90
+ See Also
91
+ ========
92
+
93
+ sympy.core.relational.Ne
94
+
95
+ """
96
+ is_reflexive = False
97
+ is_symmetric = True
98
+
99
+ name = 'ne'
100
+ handler = None
101
+
102
+ @property
103
+ def negated(self):
104
+ return Q.eq
105
+
106
+ def eval(self, args, assumptions=True):
107
+ if assumptions == True:
108
+ # default assumptions for is_neq is None
109
+ assumptions = None
110
+ return is_neq(*args, assumptions)
111
+
112
+
113
+ class StrictGreaterThanPredicate(BinaryRelation):
114
+ """
115
+ Binary predicate for $>$.
116
+
117
+ The purpose of this class is to provide the instance which represent
118
+ the ">" predicate in order to allow the logical inference.
119
+ This class must remain internal to assumptions module and user must
120
+ use :obj:`~.Gt()` instead to construct the equality expression.
121
+
122
+ Evaluating this predicate to ``True`` or ``False`` is done by
123
+ :func:`~.core.relational.is_gt`
124
+
125
+ Examples
126
+ ========
127
+
128
+ >>> from sympy import ask, Q
129
+ >>> Q.gt(0, 0)
130
+ Q.gt(0, 0)
131
+ >>> ask(_)
132
+ False
133
+
134
+ See Also
135
+ ========
136
+
137
+ sympy.core.relational.Gt
138
+
139
+ """
140
+ is_reflexive = False
141
+ is_symmetric = False
142
+
143
+ name = 'gt'
144
+ handler = None
145
+
146
+ @property
147
+ def reversed(self):
148
+ return Q.lt
149
+
150
+ @property
151
+ def negated(self):
152
+ return Q.le
153
+
154
+ def eval(self, args, assumptions=True):
155
+ if assumptions == True:
156
+ # default assumptions for is_gt is None
157
+ assumptions = None
158
+ return is_gt(*args, assumptions)
159
+
160
+
161
+ class GreaterThanPredicate(BinaryRelation):
162
+ """
163
+ Binary predicate for $>=$.
164
+
165
+ The purpose of this class is to provide the instance which represent
166
+ the ">=" predicate in order to allow the logical inference.
167
+ This class must remain internal to assumptions module and user must
168
+ use :obj:`~.Ge()` instead to construct the equality expression.
169
+
170
+ Evaluating this predicate to ``True`` or ``False`` is done by
171
+ :func:`~.core.relational.is_ge`
172
+
173
+ Examples
174
+ ========
175
+
176
+ >>> from sympy import ask, Q
177
+ >>> Q.ge(0, 0)
178
+ Q.ge(0, 0)
179
+ >>> ask(_)
180
+ True
181
+
182
+ See Also
183
+ ========
184
+
185
+ sympy.core.relational.Ge
186
+
187
+ """
188
+ is_reflexive = True
189
+ is_symmetric = False
190
+
191
+ name = 'ge'
192
+ handler = None
193
+
194
+ @property
195
+ def reversed(self):
196
+ return Q.le
197
+
198
+ @property
199
+ def negated(self):
200
+ return Q.lt
201
+
202
+ def eval(self, args, assumptions=True):
203
+ if assumptions == True:
204
+ # default assumptions for is_ge is None
205
+ assumptions = None
206
+ return is_ge(*args, assumptions)
207
+
208
+
209
+ class StrictLessThanPredicate(BinaryRelation):
210
+ """
211
+ Binary predicate for $<$.
212
+
213
+ The purpose of this class is to provide the instance which represent
214
+ the "<" predicate in order to allow the logical inference.
215
+ This class must remain internal to assumptions module and user must
216
+ use :obj:`~.Lt()` instead to construct the equality expression.
217
+
218
+ Evaluating this predicate to ``True`` or ``False`` is done by
219
+ :func:`~.core.relational.is_lt`
220
+
221
+ Examples
222
+ ========
223
+
224
+ >>> from sympy import ask, Q
225
+ >>> Q.lt(0, 0)
226
+ Q.lt(0, 0)
227
+ >>> ask(_)
228
+ False
229
+
230
+ See Also
231
+ ========
232
+
233
+ sympy.core.relational.Lt
234
+
235
+ """
236
+ is_reflexive = False
237
+ is_symmetric = False
238
+
239
+ name = 'lt'
240
+ handler = None
241
+
242
+ @property
243
+ def reversed(self):
244
+ return Q.gt
245
+
246
+ @property
247
+ def negated(self):
248
+ return Q.ge
249
+
250
+ def eval(self, args, assumptions=True):
251
+ if assumptions == True:
252
+ # default assumptions for is_lt is None
253
+ assumptions = None
254
+ return is_lt(*args, assumptions)
255
+
256
+
257
+ class LessThanPredicate(BinaryRelation):
258
+ """
259
+ Binary predicate for $<=$.
260
+
261
+ The purpose of this class is to provide the instance which represent
262
+ the "<=" predicate in order to allow the logical inference.
263
+ This class must remain internal to assumptions module and user must
264
+ use :obj:`~.Le()` instead to construct the equality expression.
265
+
266
+ Evaluating this predicate to ``True`` or ``False`` is done by
267
+ :func:`~.core.relational.is_le`
268
+
269
+ Examples
270
+ ========
271
+
272
+ >>> from sympy import ask, Q
273
+ >>> Q.le(0, 0)
274
+ Q.le(0, 0)
275
+ >>> ask(_)
276
+ True
277
+
278
+ See Also
279
+ ========
280
+
281
+ sympy.core.relational.Le
282
+
283
+ """
284
+ is_reflexive = True
285
+ is_symmetric = False
286
+
287
+ name = 'le'
288
+ handler = None
289
+
290
+ @property
291
+ def reversed(self):
292
+ return Q.ge
293
+
294
+ @property
295
+ def negated(self):
296
+ return Q.gt
297
+
298
+ def eval(self, args, assumptions=True):
299
+ if assumptions == True:
300
+ # default assumptions for is_le is None
301
+ assumptions = None
302
+ return is_le(*args, assumptions)
openflamingo/lib/python3.10/site-packages/sympy/assumptions/tests/__pycache__/test_assumptions_2.cpython-310.pyc ADDED
Binary file (1.29 kB). View file
 
openflamingo/lib/python3.10/site-packages/sympy/assumptions/tests/__pycache__/test_matrices.cpython-310.pyc ADDED
Binary file (11 kB). View file
 
openflamingo/lib/python3.10/site-packages/sympy/assumptions/tests/__pycache__/test_rel_queries.cpython-310.pyc ADDED
Binary file (6.29 kB). View file
 
openflamingo/lib/python3.10/site-packages/sympy/assumptions/tests/__pycache__/test_wrapper.cpython-310.pyc ADDED
Binary file (1.34 kB). View file
 
openflamingo/lib/python3.10/site-packages/sympy/assumptions/tests/test_context.py ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from sympy.assumptions import ask, Q
2
+ from sympy.assumptions.assume import assuming, global_assumptions
3
+ from sympy.abc import x, y
4
+
5
+ def test_assuming():
6
+ with assuming(Q.integer(x)):
7
+ assert ask(Q.integer(x))
8
+ assert not ask(Q.integer(x))
9
+
10
+ def test_assuming_nested():
11
+ assert not ask(Q.integer(x))
12
+ assert not ask(Q.integer(y))
13
+ with assuming(Q.integer(x)):
14
+ assert ask(Q.integer(x))
15
+ assert not ask(Q.integer(y))
16
+ with assuming(Q.integer(y)):
17
+ assert ask(Q.integer(x))
18
+ assert ask(Q.integer(y))
19
+ assert ask(Q.integer(x))
20
+ assert not ask(Q.integer(y))
21
+ assert not ask(Q.integer(x))
22
+ assert not ask(Q.integer(y))
23
+
24
+ def test_finally():
25
+ try:
26
+ with assuming(Q.integer(x)):
27
+ 1/0
28
+ except ZeroDivisionError:
29
+ pass
30
+ assert not ask(Q.integer(x))
31
+
32
+ def test_remove_safe():
33
+ global_assumptions.add(Q.integer(x))
34
+ with assuming():
35
+ assert ask(Q.integer(x))
36
+ global_assumptions.remove(Q.integer(x))
37
+ assert not ask(Q.integer(x))
38
+ assert ask(Q.integer(x))
39
+ global_assumptions.clear() # for the benefit of other tests
openflamingo/lib/python3.10/site-packages/sympy/assumptions/tests/test_query.py ADDED
The diff for this file is too large to render. See raw diff
 
openflamingo/lib/python3.10/site-packages/sympy/assumptions/tests/test_refine.py ADDED
@@ -0,0 +1,227 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from sympy.assumptions.ask import Q
2
+ from sympy.assumptions.refine import refine
3
+ from sympy.core.expr import Expr
4
+ from sympy.core.numbers import (I, Rational, nan, pi)
5
+ from sympy.core.singleton import S
6
+ from sympy.core.symbol import Symbol
7
+ from sympy.functions.elementary.complexes import (Abs, arg, im, re, sign)
8
+ from sympy.functions.elementary.exponential import exp
9
+ from sympy.functions.elementary.miscellaneous import sqrt
10
+ from sympy.functions.elementary.trigonometric import (atan, atan2)
11
+ from sympy.abc import w, x, y, z
12
+ from sympy.core.relational import Eq, Ne
13
+ from sympy.functions.elementary.piecewise import Piecewise
14
+ from sympy.matrices.expressions.matexpr import MatrixSymbol
15
+
16
+
17
+ def test_Abs():
18
+ assert refine(Abs(x), Q.positive(x)) == x
19
+ assert refine(1 + Abs(x), Q.positive(x)) == 1 + x
20
+ assert refine(Abs(x), Q.negative(x)) == -x
21
+ assert refine(1 + Abs(x), Q.negative(x)) == 1 - x
22
+
23
+ assert refine(Abs(x**2)) != x**2
24
+ assert refine(Abs(x**2), Q.real(x)) == x**2
25
+
26
+
27
+ def test_pow1():
28
+ assert refine((-1)**x, Q.even(x)) == 1
29
+ assert refine((-1)**x, Q.odd(x)) == -1
30
+ assert refine((-2)**x, Q.even(x)) == 2**x
31
+
32
+ # nested powers
33
+ assert refine(sqrt(x**2)) != Abs(x)
34
+ assert refine(sqrt(x**2), Q.complex(x)) != Abs(x)
35
+ assert refine(sqrt(x**2), Q.real(x)) == Abs(x)
36
+ assert refine(sqrt(x**2), Q.positive(x)) == x
37
+ assert refine((x**3)**Rational(1, 3)) != x
38
+
39
+ assert refine((x**3)**Rational(1, 3), Q.real(x)) != x
40
+ assert refine((x**3)**Rational(1, 3), Q.positive(x)) == x
41
+
42
+ assert refine(sqrt(1/x), Q.real(x)) != 1/sqrt(x)
43
+ assert refine(sqrt(1/x), Q.positive(x)) == 1/sqrt(x)
44
+
45
+ # powers of (-1)
46
+ assert refine((-1)**(x + y), Q.even(x)) == (-1)**y
47
+ assert refine((-1)**(x + y + z), Q.odd(x) & Q.odd(z)) == (-1)**y
48
+ assert refine((-1)**(x + y + 1), Q.odd(x)) == (-1)**y
49
+ assert refine((-1)**(x + y + 2), Q.odd(x)) == (-1)**(y + 1)
50
+ assert refine((-1)**(x + 3)) == (-1)**(x + 1)
51
+
52
+ # continuation
53
+ assert refine((-1)**((-1)**x/2 - S.Half), Q.integer(x)) == (-1)**x
54
+ assert refine((-1)**((-1)**x/2 + S.Half), Q.integer(x)) == (-1)**(x + 1)
55
+ assert refine((-1)**((-1)**x/2 + 5*S.Half), Q.integer(x)) == (-1)**(x + 1)
56
+
57
+
58
+ def test_pow2():
59
+ assert refine((-1)**((-1)**x/2 - 7*S.Half), Q.integer(x)) == (-1)**(x + 1)
60
+ assert refine((-1)**((-1)**x/2 - 9*S.Half), Q.integer(x)) == (-1)**x
61
+
62
+ # powers of Abs
63
+ assert refine(Abs(x)**2, Q.real(x)) == x**2
64
+ assert refine(Abs(x)**3, Q.real(x)) == Abs(x)**3
65
+ assert refine(Abs(x)**2) == Abs(x)**2
66
+
67
+
68
+ def test_exp():
69
+ x = Symbol('x', integer=True)
70
+ assert refine(exp(pi*I*2*x)) == 1
71
+ assert refine(exp(pi*I*2*(x + S.Half))) == -1
72
+ assert refine(exp(pi*I*2*(x + Rational(1, 4)))) == I
73
+ assert refine(exp(pi*I*2*(x + Rational(3, 4)))) == -I
74
+
75
+
76
+ def test_Piecewise():
77
+ assert refine(Piecewise((1, x < 0), (3, True)), (x < 0)) == 1
78
+ assert refine(Piecewise((1, x < 0), (3, True)), ~(x < 0)) == 3
79
+ assert refine(Piecewise((1, x < 0), (3, True)), (y < 0)) == \
80
+ Piecewise((1, x < 0), (3, True))
81
+ assert refine(Piecewise((1, x > 0), (3, True)), (x > 0)) == 1
82
+ assert refine(Piecewise((1, x > 0), (3, True)), ~(x > 0)) == 3
83
+ assert refine(Piecewise((1, x > 0), (3, True)), (y > 0)) == \
84
+ Piecewise((1, x > 0), (3, True))
85
+ assert refine(Piecewise((1, x <= 0), (3, True)), (x <= 0)) == 1
86
+ assert refine(Piecewise((1, x <= 0), (3, True)), ~(x <= 0)) == 3
87
+ assert refine(Piecewise((1, x <= 0), (3, True)), (y <= 0)) == \
88
+ Piecewise((1, x <= 0), (3, True))
89
+ assert refine(Piecewise((1, x >= 0), (3, True)), (x >= 0)) == 1
90
+ assert refine(Piecewise((1, x >= 0), (3, True)), ~(x >= 0)) == 3
91
+ assert refine(Piecewise((1, x >= 0), (3, True)), (y >= 0)) == \
92
+ Piecewise((1, x >= 0), (3, True))
93
+ assert refine(Piecewise((1, Eq(x, 0)), (3, True)), (Eq(x, 0)))\
94
+ == 1
95
+ assert refine(Piecewise((1, Eq(x, 0)), (3, True)), (Eq(0, x)))\
96
+ == 1
97
+ assert refine(Piecewise((1, Eq(x, 0)), (3, True)), ~(Eq(x, 0)))\
98
+ == 3
99
+ assert refine(Piecewise((1, Eq(x, 0)), (3, True)), ~(Eq(0, x)))\
100
+ == 3
101
+ assert refine(Piecewise((1, Eq(x, 0)), (3, True)), (Eq(y, 0)))\
102
+ == Piecewise((1, Eq(x, 0)), (3, True))
103
+ assert refine(Piecewise((1, Ne(x, 0)), (3, True)), (Ne(x, 0)))\
104
+ == 1
105
+ assert refine(Piecewise((1, Ne(x, 0)), (3, True)), ~(Ne(x, 0)))\
106
+ == 3
107
+ assert refine(Piecewise((1, Ne(x, 0)), (3, True)), (Ne(y, 0)))\
108
+ == Piecewise((1, Ne(x, 0)), (3, True))
109
+
110
+
111
+ def test_atan2():
112
+ assert refine(atan2(y, x), Q.real(y) & Q.positive(x)) == atan(y/x)
113
+ assert refine(atan2(y, x), Q.negative(y) & Q.positive(x)) == atan(y/x)
114
+ assert refine(atan2(y, x), Q.negative(y) & Q.negative(x)) == atan(y/x) - pi
115
+ assert refine(atan2(y, x), Q.positive(y) & Q.negative(x)) == atan(y/x) + pi
116
+ assert refine(atan2(y, x), Q.zero(y) & Q.negative(x)) == pi
117
+ assert refine(atan2(y, x), Q.positive(y) & Q.zero(x)) == pi/2
118
+ assert refine(atan2(y, x), Q.negative(y) & Q.zero(x)) == -pi/2
119
+ assert refine(atan2(y, x), Q.zero(y) & Q.zero(x)) is nan
120
+
121
+
122
+ def test_re():
123
+ assert refine(re(x), Q.real(x)) == x
124
+ assert refine(re(x), Q.imaginary(x)) is S.Zero
125
+ assert refine(re(x+y), Q.real(x) & Q.real(y)) == x + y
126
+ assert refine(re(x+y), Q.real(x) & Q.imaginary(y)) == x
127
+ assert refine(re(x*y), Q.real(x) & Q.real(y)) == x * y
128
+ assert refine(re(x*y), Q.real(x) & Q.imaginary(y)) == 0
129
+ assert refine(re(x*y*z), Q.real(x) & Q.real(y) & Q.real(z)) == x * y * z
130
+
131
+
132
+ def test_im():
133
+ assert refine(im(x), Q.imaginary(x)) == -I*x
134
+ assert refine(im(x), Q.real(x)) is S.Zero
135
+ assert refine(im(x+y), Q.imaginary(x) & Q.imaginary(y)) == -I*x - I*y
136
+ assert refine(im(x+y), Q.real(x) & Q.imaginary(y)) == -I*y
137
+ assert refine(im(x*y), Q.imaginary(x) & Q.real(y)) == -I*x*y
138
+ assert refine(im(x*y), Q.imaginary(x) & Q.imaginary(y)) == 0
139
+ assert refine(im(1/x), Q.imaginary(x)) == -I/x
140
+ assert refine(im(x*y*z), Q.imaginary(x) & Q.imaginary(y)
141
+ & Q.imaginary(z)) == -I*x*y*z
142
+
143
+
144
+ def test_complex():
145
+ assert refine(re(1/(x + I*y)), Q.real(x) & Q.real(y)) == \
146
+ x/(x**2 + y**2)
147
+ assert refine(im(1/(x + I*y)), Q.real(x) & Q.real(y)) == \
148
+ -y/(x**2 + y**2)
149
+ assert refine(re((w + I*x) * (y + I*z)), Q.real(w) & Q.real(x) & Q.real(y)
150
+ & Q.real(z)) == w*y - x*z
151
+ assert refine(im((w + I*x) * (y + I*z)), Q.real(w) & Q.real(x) & Q.real(y)
152
+ & Q.real(z)) == w*z + x*y
153
+
154
+
155
+ def test_sign():
156
+ x = Symbol('x', real = True)
157
+ assert refine(sign(x), Q.positive(x)) == 1
158
+ assert refine(sign(x), Q.negative(x)) == -1
159
+ assert refine(sign(x), Q.zero(x)) == 0
160
+ assert refine(sign(x), True) == sign(x)
161
+ assert refine(sign(Abs(x)), Q.nonzero(x)) == 1
162
+
163
+ x = Symbol('x', imaginary=True)
164
+ assert refine(sign(x), Q.positive(im(x))) == S.ImaginaryUnit
165
+ assert refine(sign(x), Q.negative(im(x))) == -S.ImaginaryUnit
166
+ assert refine(sign(x), True) == sign(x)
167
+
168
+ x = Symbol('x', complex=True)
169
+ assert refine(sign(x), Q.zero(x)) == 0
170
+
171
+ def test_arg():
172
+ x = Symbol('x', complex = True)
173
+ assert refine(arg(x), Q.positive(x)) == 0
174
+ assert refine(arg(x), Q.negative(x)) == pi
175
+
176
+ def test_func_args():
177
+ class MyClass(Expr):
178
+ # A class with nontrivial .func
179
+
180
+ def __init__(self, *args):
181
+ self.my_member = ""
182
+
183
+ @property
184
+ def func(self):
185
+ def my_func(*args):
186
+ obj = MyClass(*args)
187
+ obj.my_member = self.my_member
188
+ return obj
189
+ return my_func
190
+
191
+ x = MyClass()
192
+ x.my_member = "A very important value"
193
+ assert x.my_member == refine(x).my_member
194
+
195
+ def test_issue_refine_9384():
196
+ assert refine(Piecewise((1, x < 0), (0, True)), Q.positive(x)) == 0
197
+ assert refine(Piecewise((1, x < 0), (0, True)), Q.negative(x)) == 1
198
+ assert refine(Piecewise((1, x > 0), (0, True)), Q.positive(x)) == 1
199
+ assert refine(Piecewise((1, x > 0), (0, True)), Q.negative(x)) == 0
200
+
201
+
202
+ def test_eval_refine():
203
+ class MockExpr(Expr):
204
+ def _eval_refine(self, assumptions):
205
+ return True
206
+
207
+ mock_obj = MockExpr()
208
+ assert refine(mock_obj)
209
+
210
+ def test_refine_issue_12724():
211
+ expr1 = refine(Abs(x * y), Q.positive(x))
212
+ expr2 = refine(Abs(x * y * z), Q.positive(x))
213
+ assert expr1 == x * Abs(y)
214
+ assert expr2 == x * Abs(y * z)
215
+ y1 = Symbol('y1', real = True)
216
+ expr3 = refine(Abs(x * y1**2 * z), Q.positive(x))
217
+ assert expr3 == x * y1**2 * Abs(z)
218
+
219
+
220
+ def test_matrixelement():
221
+ x = MatrixSymbol('x', 3, 3)
222
+ i = Symbol('i', positive = True)
223
+ j = Symbol('j', positive = True)
224
+ assert refine(x[0, 1], Q.symmetric(x)) == x[0, 1]
225
+ assert refine(x[1, 0], Q.symmetric(x)) == x[0, 1]
226
+ assert refine(x[i, j], Q.symmetric(x)) == x[j, i]
227
+ assert refine(x[j, i], Q.symmetric(x)) == x[j, i]
openflamingo/lib/python3.10/site-packages/sympy/assumptions/tests/test_rel_queries.py ADDED
@@ -0,0 +1,172 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from sympy.assumptions.lra_satask import lra_satask
2
+ from sympy.logic.algorithms.lra_theory import UnhandledInput
3
+ from sympy.assumptions.ask import Q, ask
4
+
5
+ from sympy.core import symbols, Symbol
6
+ from sympy.matrices.expressions.matexpr import MatrixSymbol
7
+ from sympy.core.numbers import I
8
+
9
+ from sympy.testing.pytest import raises, XFAIL
10
+ x, y, z = symbols("x y z", real=True)
11
+
12
+ def test_lra_satask():
13
+ im = Symbol('im', imaginary=True)
14
+
15
+ # test preprocessing of unequalities is working correctly
16
+ assert lra_satask(Q.eq(x, 1), ~Q.ne(x, 0)) is False
17
+ assert lra_satask(Q.eq(x, 0), ~Q.ne(x, 0)) is True
18
+ assert lra_satask(~Q.ne(x, 0), Q.eq(x, 0)) is True
19
+ assert lra_satask(~Q.eq(x, 0), Q.eq(x, 0)) is False
20
+ assert lra_satask(Q.ne(x, 0), Q.eq(x, 0)) is False
21
+
22
+ # basic tests
23
+ assert lra_satask(Q.ne(x, x)) is False
24
+ assert lra_satask(Q.eq(x, x)) is True
25
+ assert lra_satask(Q.gt(x, 0), Q.gt(x, 1)) is True
26
+
27
+ # check that True/False are handled
28
+ assert lra_satask(Q.gt(x, 0), True) is None
29
+ assert raises(ValueError, lambda: lra_satask(Q.gt(x, 0), False))
30
+
31
+ # check imaginary numbers are correctly handled
32
+ # (im * I).is_real returns True so this is an edge case
33
+ raises(UnhandledInput, lambda: lra_satask(Q.gt(im * I, 0), Q.gt(im * I, 0)))
34
+
35
+ # check matrix inputs
36
+ X = MatrixSymbol("X", 2, 2)
37
+ raises(UnhandledInput, lambda: lra_satask(Q.lt(X, 2) & Q.gt(X, 3)))
38
+
39
+
40
+ def test_old_assumptions():
41
+ # test unhandled old assumptions
42
+ w = symbols("w")
43
+ raises(UnhandledInput, lambda: lra_satask(Q.lt(w, 2) & Q.gt(w, 3)))
44
+ w = symbols("w", rational=False, real=True)
45
+ raises(UnhandledInput, lambda: lra_satask(Q.lt(w, 2) & Q.gt(w, 3)))
46
+ w = symbols("w", odd=True, real=True)
47
+ raises(UnhandledInput, lambda: lra_satask(Q.lt(w, 2) & Q.gt(w, 3)))
48
+ w = symbols("w", even=True, real=True)
49
+ raises(UnhandledInput, lambda: lra_satask(Q.lt(w, 2) & Q.gt(w, 3)))
50
+ w = symbols("w", prime=True, real=True)
51
+ raises(UnhandledInput, lambda: lra_satask(Q.lt(w, 2) & Q.gt(w, 3)))
52
+ w = symbols("w", composite=True, real=True)
53
+ raises(UnhandledInput, lambda: lra_satask(Q.lt(w, 2) & Q.gt(w, 3)))
54
+ w = symbols("w", integer=True, real=True)
55
+ raises(UnhandledInput, lambda: lra_satask(Q.lt(w, 2) & Q.gt(w, 3)))
56
+ w = symbols("w", integer=False, real=True)
57
+ raises(UnhandledInput, lambda: lra_satask(Q.lt(w, 2) & Q.gt(w, 3)))
58
+
59
+ # test handled
60
+ w = symbols("w", positive=True, real=True)
61
+ assert lra_satask(Q.le(w, 0)) is False
62
+ assert lra_satask(Q.gt(w, 0)) is True
63
+ w = symbols("w", negative=True, real=True)
64
+ assert lra_satask(Q.lt(w, 0)) is True
65
+ assert lra_satask(Q.ge(w, 0)) is False
66
+ w = symbols("w", zero=True, real=True)
67
+ assert lra_satask(Q.eq(w, 0)) is True
68
+ assert lra_satask(Q.ne(w, 0)) is False
69
+ w = symbols("w", nonzero=True, real=True)
70
+ assert lra_satask(Q.ne(w, 0)) is True
71
+ assert lra_satask(Q.eq(w, 1)) is None
72
+ w = symbols("w", nonpositive=True, real=True)
73
+ assert lra_satask(Q.le(w, 0)) is True
74
+ assert lra_satask(Q.gt(w, 0)) is False
75
+ w = symbols("w", nonnegative=True, real=True)
76
+ assert lra_satask(Q.ge(w, 0)) is True
77
+ assert lra_satask(Q.lt(w, 0)) is False
78
+
79
+
80
+ def test_rel_queries():
81
+ assert ask(Q.lt(x, 2) & Q.gt(x, 3)) is False
82
+ assert ask(Q.positive(x - z), (x > y) & (y > z)) is True
83
+ assert ask(x + y > 2, (x < 0) & (y <0)) is False
84
+ assert ask(x > z, (x > y) & (y > z)) is True
85
+
86
+
87
+ def test_unhandled_queries():
88
+ X = MatrixSymbol("X", 2, 2)
89
+ assert ask(Q.lt(X, 2) & Q.gt(X, 3)) is None
90
+
91
+
92
+ def test_all_pred():
93
+ # test usable pred
94
+ assert lra_satask(Q.extended_positive(x), (x > 2)) is True
95
+ assert lra_satask(Q.positive_infinite(x)) is False
96
+ assert lra_satask(Q.negative_infinite(x)) is False
97
+
98
+ # test disallowed pred
99
+ raises(UnhandledInput, lambda: lra_satask((x > 0), (x > 2) & Q.prime(x)))
100
+ raises(UnhandledInput, lambda: lra_satask((x > 0), (x > 2) & Q.composite(x)))
101
+ raises(UnhandledInput, lambda: lra_satask((x > 0), (x > 2) & Q.odd(x)))
102
+ raises(UnhandledInput, lambda: lra_satask((x > 0), (x > 2) & Q.even(x)))
103
+ raises(UnhandledInput, lambda: lra_satask((x > 0), (x > 2) & Q.integer(x)))
104
+
105
+
106
+ def test_number_line_properties():
107
+ # From:
108
+ # https://en.wikipedia.org/wiki/Inequality_(mathematics)#Properties_on_the_number_line
109
+
110
+ a, b, c = symbols("a b c", real=True)
111
+
112
+ # Transitivity
113
+ # If a <= b and b <= c, then a <= c.
114
+ assert ask(a <= c, (a <= b) & (b <= c)) is True
115
+ # If a <= b and b < c, then a < c.
116
+ assert ask(a < c, (a <= b) & (b < c)) is True
117
+ # If a < b and b <= c, then a < c.
118
+ assert ask(a < c, (a < b) & (b <= c)) is True
119
+
120
+ # Addition and subtraction
121
+ # If a <= b, then a + c <= b + c and a - c <= b - c.
122
+ assert ask(a + c <= b + c, a <= b) is True
123
+ assert ask(a - c <= b - c, a <= b) is True
124
+
125
+
126
+ @XFAIL
127
+ def test_failing_number_line_properties():
128
+ # From:
129
+ # https://en.wikipedia.org/wiki/Inequality_(mathematics)#Properties_on_the_number_line
130
+
131
+ a, b, c = symbols("a b c", real=True)
132
+
133
+ # Multiplication and division
134
+ # If a <= b and c > 0, then ac <= bc and a/c <= b/c. (True for non-zero c)
135
+ assert ask(a*c <= b*c, (a <= b) & (c > 0) & ~ Q.zero(c)) is True
136
+ assert ask(a/c <= b/c, (a <= b) & (c > 0) & ~ Q.zero(c)) is True
137
+ # If a <= b and c < 0, then ac >= bc and a/c >= b/c. (True for non-zero c)
138
+ assert ask(a*c >= b*c, (a <= b) & (c < 0) & ~ Q.zero(c)) is True
139
+ assert ask(a/c >= b/c, (a <= b) & (c < 0) & ~ Q.zero(c)) is True
140
+
141
+ # Additive inverse
142
+ # If a <= b, then -a >= -b.
143
+ assert ask(-a >= -b, a <= b) is True
144
+
145
+ # Multiplicative inverse
146
+ # For a, b that are both negative or both positive:
147
+ # If a <= b, then 1/a >= 1/b .
148
+ assert ask(1/a >= 1/b, (a <= b) & Q.positive(x) & Q.positive(b)) is True
149
+ assert ask(1/a >= 1/b, (a <= b) & Q.negative(x) & Q.negative(b)) is True
150
+
151
+
152
+ def test_equality():
153
+ # test symetry and reflexivity
154
+ assert ask(Q.eq(x, x)) is True
155
+ assert ask(Q.eq(y, x), Q.eq(x, y)) is True
156
+ assert ask(Q.eq(y, x), ~Q.eq(z, z) | Q.eq(x, y)) is True
157
+
158
+ # test transitivity
159
+ assert ask(Q.eq(x,z), Q.eq(x,y) & Q.eq(y,z)) is True
160
+
161
+
162
+ @XFAIL
163
+ def test_equality_failing():
164
+ # Note that implementing the substitution property of equality
165
+ # most likely requires a redesign of the new assumptions.
166
+ # See issue #25485 for why this is the case and general ideas
167
+ # about how things could be redesigned.
168
+
169
+ # test substitution property
170
+ assert ask(Q.prime(x), Q.eq(x, y) & Q.prime(y)) is True
171
+ assert ask(Q.real(x), Q.eq(x, y) & Q.real(y)) is True
172
+ assert ask(Q.imaginary(x), Q.eq(x, y) & Q.imaginary(y)) is True
openflamingo/lib/python3.10/site-packages/sympy/assumptions/tests/test_satask.py ADDED
@@ -0,0 +1,378 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from sympy.assumptions.ask import Q
2
+ from sympy.assumptions.assume import assuming
3
+ from sympy.core.numbers import (I, pi)
4
+ from sympy.core.relational import (Eq, Gt)
5
+ from sympy.core.singleton import S
6
+ from sympy.core.symbol import symbols
7
+ from sympy.functions.elementary.complexes import Abs
8
+ from sympy.logic.boolalg import Implies
9
+ from sympy.matrices.expressions.matexpr import MatrixSymbol
10
+ from sympy.assumptions.cnf import CNF, Literal
11
+ from sympy.assumptions.satask import (satask, extract_predargs,
12
+ get_relevant_clsfacts)
13
+
14
+ from sympy.testing.pytest import raises, XFAIL
15
+
16
+
17
+ x, y, z = symbols('x y z')
18
+
19
+
20
+ def test_satask():
21
+ # No relevant facts
22
+ assert satask(Q.real(x), Q.real(x)) is True
23
+ assert satask(Q.real(x), ~Q.real(x)) is False
24
+ assert satask(Q.real(x)) is None
25
+
26
+ assert satask(Q.real(x), Q.positive(x)) is True
27
+ assert satask(Q.positive(x), Q.real(x)) is None
28
+ assert satask(Q.real(x), ~Q.positive(x)) is None
29
+ assert satask(Q.positive(x), ~Q.real(x)) is False
30
+
31
+ raises(ValueError, lambda: satask(Q.real(x), Q.real(x) & ~Q.real(x)))
32
+
33
+ with assuming(Q.positive(x)):
34
+ assert satask(Q.real(x)) is True
35
+ assert satask(~Q.positive(x)) is False
36
+ raises(ValueError, lambda: satask(Q.real(x), ~Q.positive(x)))
37
+
38
+ assert satask(Q.zero(x), Q.nonzero(x)) is False
39
+ assert satask(Q.positive(x), Q.zero(x)) is False
40
+ assert satask(Q.real(x), Q.zero(x)) is True
41
+ assert satask(Q.zero(x), Q.zero(x*y)) is None
42
+ assert satask(Q.zero(x*y), Q.zero(x))
43
+
44
+
45
+ def test_zero():
46
+ """
47
+ Everything in this test doesn't work with the ask handlers, and most
48
+ things would be very difficult or impossible to make work under that
49
+ model.
50
+
51
+ """
52
+ assert satask(Q.zero(x) | Q.zero(y), Q.zero(x*y)) is True
53
+ assert satask(Q.zero(x*y), Q.zero(x) | Q.zero(y)) is True
54
+
55
+ assert satask(Implies(Q.zero(x), Q.zero(x*y))) is True
56
+
57
+ # This one in particular requires computing the fixed-point of the
58
+ # relevant facts, because going from Q.nonzero(x*y) -> ~Q.zero(x*y) and
59
+ # Q.zero(x*y) -> Equivalent(Q.zero(x*y), Q.zero(x) | Q.zero(y)) takes two
60
+ # steps.
61
+ assert satask(Q.zero(x) | Q.zero(y), Q.nonzero(x*y)) is False
62
+
63
+ assert satask(Q.zero(x), Q.zero(x**2)) is True
64
+
65
+
66
+ def test_zero_positive():
67
+ assert satask(Q.zero(x + y), Q.positive(x) & Q.positive(y)) is False
68
+ assert satask(Q.positive(x) & Q.positive(y), Q.zero(x + y)) is False
69
+ assert satask(Q.nonzero(x + y), Q.positive(x) & Q.positive(y)) is True
70
+ assert satask(Q.positive(x) & Q.positive(y), Q.nonzero(x + y)) is None
71
+
72
+ # This one requires several levels of forward chaining
73
+ assert satask(Q.zero(x*(x + y)), Q.positive(x) & Q.positive(y)) is False
74
+
75
+ assert satask(Q.positive(pi*x*y + 1), Q.positive(x) & Q.positive(y)) is True
76
+ assert satask(Q.positive(pi*x*y - 5), Q.positive(x) & Q.positive(y)) is None
77
+
78
+
79
+ def test_zero_pow():
80
+ assert satask(Q.zero(x**y), Q.zero(x) & Q.positive(y)) is True
81
+ assert satask(Q.zero(x**y), Q.nonzero(x) & Q.zero(y)) is False
82
+
83
+ assert satask(Q.zero(x), Q.zero(x**y)) is True
84
+
85
+ assert satask(Q.zero(x**y), Q.zero(x)) is None
86
+
87
+
88
+ @XFAIL
89
+ # Requires correct Q.square calculation first
90
+ def test_invertible():
91
+ A = MatrixSymbol('A', 5, 5)
92
+ B = MatrixSymbol('B', 5, 5)
93
+ assert satask(Q.invertible(A*B), Q.invertible(A) & Q.invertible(B)) is True
94
+ assert satask(Q.invertible(A), Q.invertible(A*B)) is True
95
+ assert satask(Q.invertible(A) & Q.invertible(B), Q.invertible(A*B)) is True
96
+
97
+
98
+ def test_prime():
99
+ assert satask(Q.prime(5)) is True
100
+ assert satask(Q.prime(6)) is False
101
+ assert satask(Q.prime(-5)) is False
102
+
103
+ assert satask(Q.prime(x*y), Q.integer(x) & Q.integer(y)) is None
104
+ assert satask(Q.prime(x*y), Q.prime(x) & Q.prime(y)) is False
105
+
106
+
107
+ def test_old_assump():
108
+ assert satask(Q.positive(1)) is True
109
+ assert satask(Q.positive(-1)) is False
110
+ assert satask(Q.positive(0)) is False
111
+ assert satask(Q.positive(I)) is False
112
+ assert satask(Q.positive(pi)) is True
113
+
114
+ assert satask(Q.negative(1)) is False
115
+ assert satask(Q.negative(-1)) is True
116
+ assert satask(Q.negative(0)) is False
117
+ assert satask(Q.negative(I)) is False
118
+ assert satask(Q.negative(pi)) is False
119
+
120
+ assert satask(Q.zero(1)) is False
121
+ assert satask(Q.zero(-1)) is False
122
+ assert satask(Q.zero(0)) is True
123
+ assert satask(Q.zero(I)) is False
124
+ assert satask(Q.zero(pi)) is False
125
+
126
+ assert satask(Q.nonzero(1)) is True
127
+ assert satask(Q.nonzero(-1)) is True
128
+ assert satask(Q.nonzero(0)) is False
129
+ assert satask(Q.nonzero(I)) is False
130
+ assert satask(Q.nonzero(pi)) is True
131
+
132
+ assert satask(Q.nonpositive(1)) is False
133
+ assert satask(Q.nonpositive(-1)) is True
134
+ assert satask(Q.nonpositive(0)) is True
135
+ assert satask(Q.nonpositive(I)) is False
136
+ assert satask(Q.nonpositive(pi)) is False
137
+
138
+ assert satask(Q.nonnegative(1)) is True
139
+ assert satask(Q.nonnegative(-1)) is False
140
+ assert satask(Q.nonnegative(0)) is True
141
+ assert satask(Q.nonnegative(I)) is False
142
+ assert satask(Q.nonnegative(pi)) is True
143
+
144
+
145
+ def test_rational_irrational():
146
+ assert satask(Q.irrational(2)) is False
147
+ assert satask(Q.rational(2)) is True
148
+ assert satask(Q.irrational(pi)) is True
149
+ assert satask(Q.rational(pi)) is False
150
+ assert satask(Q.irrational(I)) is False
151
+ assert satask(Q.rational(I)) is False
152
+
153
+ assert satask(Q.irrational(x*y*z), Q.irrational(x) & Q.irrational(y) &
154
+ Q.rational(z)) is None
155
+ assert satask(Q.irrational(x*y*z), Q.irrational(x) & Q.rational(y) &
156
+ Q.rational(z)) is True
157
+ assert satask(Q.irrational(pi*x*y), Q.rational(x) & Q.rational(y)) is True
158
+
159
+ assert satask(Q.irrational(x + y + z), Q.irrational(x) & Q.irrational(y) &
160
+ Q.rational(z)) is None
161
+ assert satask(Q.irrational(x + y + z), Q.irrational(x) & Q.rational(y) &
162
+ Q.rational(z)) is True
163
+ assert satask(Q.irrational(pi + x + y), Q.rational(x) & Q.rational(y)) is True
164
+
165
+ assert satask(Q.irrational(x*y*z), Q.rational(x) & Q.rational(y) &
166
+ Q.rational(z)) is False
167
+ assert satask(Q.rational(x*y*z), Q.rational(x) & Q.rational(y) &
168
+ Q.rational(z)) is True
169
+
170
+ assert satask(Q.irrational(x + y + z), Q.rational(x) & Q.rational(y) &
171
+ Q.rational(z)) is False
172
+ assert satask(Q.rational(x + y + z), Q.rational(x) & Q.rational(y) &
173
+ Q.rational(z)) is True
174
+
175
+
176
+ def test_even_satask():
177
+ assert satask(Q.even(2)) is True
178
+ assert satask(Q.even(3)) is False
179
+
180
+ assert satask(Q.even(x*y), Q.even(x) & Q.odd(y)) is True
181
+ assert satask(Q.even(x*y), Q.even(x) & Q.integer(y)) is True
182
+ assert satask(Q.even(x*y), Q.even(x) & Q.even(y)) is True
183
+ assert satask(Q.even(x*y), Q.odd(x) & Q.odd(y)) is False
184
+ assert satask(Q.even(x*y), Q.even(x)) is None
185
+ assert satask(Q.even(x*y), Q.odd(x) & Q.integer(y)) is None
186
+ assert satask(Q.even(x*y), Q.odd(x) & Q.odd(y)) is False
187
+
188
+ assert satask(Q.even(abs(x)), Q.even(x)) is True
189
+ assert satask(Q.even(abs(x)), Q.odd(x)) is False
190
+ assert satask(Q.even(x), Q.even(abs(x))) is None # x could be complex
191
+
192
+
193
+ def test_odd_satask():
194
+ assert satask(Q.odd(2)) is False
195
+ assert satask(Q.odd(3)) is True
196
+
197
+ assert satask(Q.odd(x*y), Q.even(x) & Q.odd(y)) is False
198
+ assert satask(Q.odd(x*y), Q.even(x) & Q.integer(y)) is False
199
+ assert satask(Q.odd(x*y), Q.even(x) & Q.even(y)) is False
200
+ assert satask(Q.odd(x*y), Q.odd(x) & Q.odd(y)) is True
201
+ assert satask(Q.odd(x*y), Q.even(x)) is None
202
+ assert satask(Q.odd(x*y), Q.odd(x) & Q.integer(y)) is None
203
+ assert satask(Q.odd(x*y), Q.odd(x) & Q.odd(y)) is True
204
+
205
+ assert satask(Q.odd(abs(x)), Q.even(x)) is False
206
+ assert satask(Q.odd(abs(x)), Q.odd(x)) is True
207
+ assert satask(Q.odd(x), Q.odd(abs(x))) is None # x could be complex
208
+
209
+
210
+ def test_integer():
211
+ assert satask(Q.integer(1)) is True
212
+ assert satask(Q.integer(S.Half)) is False
213
+
214
+ assert satask(Q.integer(x + y), Q.integer(x) & Q.integer(y)) is True
215
+ assert satask(Q.integer(x + y), Q.integer(x)) is None
216
+
217
+ assert satask(Q.integer(x + y), Q.integer(x) & ~Q.integer(y)) is False
218
+ assert satask(Q.integer(x + y + z), Q.integer(x) & Q.integer(y) &
219
+ ~Q.integer(z)) is False
220
+ assert satask(Q.integer(x + y + z), Q.integer(x) & ~Q.integer(y) &
221
+ ~Q.integer(z)) is None
222
+ assert satask(Q.integer(x + y + z), Q.integer(x) & ~Q.integer(y)) is None
223
+ assert satask(Q.integer(x + y), Q.integer(x) & Q.irrational(y)) is False
224
+
225
+ assert satask(Q.integer(x*y), Q.integer(x) & Q.integer(y)) is True
226
+ assert satask(Q.integer(x*y), Q.integer(x)) is None
227
+
228
+ assert satask(Q.integer(x*y), Q.integer(x) & ~Q.integer(y)) is None
229
+ assert satask(Q.integer(x*y), Q.integer(x) & ~Q.rational(y)) is False
230
+ assert satask(Q.integer(x*y*z), Q.integer(x) & Q.integer(y) &
231
+ ~Q.rational(z)) is False
232
+ assert satask(Q.integer(x*y*z), Q.integer(x) & ~Q.rational(y) &
233
+ ~Q.rational(z)) is None
234
+ assert satask(Q.integer(x*y*z), Q.integer(x) & ~Q.rational(y)) is None
235
+ assert satask(Q.integer(x*y), Q.integer(x) & Q.irrational(y)) is False
236
+
237
+
238
+ def test_abs():
239
+ assert satask(Q.nonnegative(abs(x))) is True
240
+ assert satask(Q.positive(abs(x)), ~Q.zero(x)) is True
241
+ assert satask(Q.zero(x), ~Q.zero(abs(x))) is False
242
+ assert satask(Q.zero(x), Q.zero(abs(x))) is True
243
+ assert satask(Q.nonzero(x), ~Q.zero(abs(x))) is None # x could be complex
244
+ assert satask(Q.zero(abs(x)), Q.zero(x)) is True
245
+
246
+
247
+ def test_imaginary():
248
+ assert satask(Q.imaginary(2*I)) is True
249
+ assert satask(Q.imaginary(x*y), Q.imaginary(x)) is None
250
+ assert satask(Q.imaginary(x*y), Q.imaginary(x) & Q.real(y)) is True
251
+ assert satask(Q.imaginary(x), Q.real(x)) is False
252
+ assert satask(Q.imaginary(1)) is False
253
+ assert satask(Q.imaginary(x*y), Q.real(x) & Q.real(y)) is False
254
+ assert satask(Q.imaginary(x + y), Q.real(x) & Q.real(y)) is False
255
+
256
+
257
+ def test_real():
258
+ assert satask(Q.real(x*y), Q.real(x) & Q.real(y)) is True
259
+ assert satask(Q.real(x + y), Q.real(x) & Q.real(y)) is True
260
+ assert satask(Q.real(x*y*z), Q.real(x) & Q.real(y) & Q.real(z)) is True
261
+ assert satask(Q.real(x*y*z), Q.real(x) & Q.real(y)) is None
262
+ assert satask(Q.real(x*y*z), Q.real(x) & Q.real(y) & Q.imaginary(z)) is False
263
+ assert satask(Q.real(x + y + z), Q.real(x) & Q.real(y) & Q.real(z)) is True
264
+ assert satask(Q.real(x + y + z), Q.real(x) & Q.real(y)) is None
265
+
266
+
267
+ def test_pos_neg():
268
+ assert satask(~Q.positive(x), Q.negative(x)) is True
269
+ assert satask(~Q.negative(x), Q.positive(x)) is True
270
+ assert satask(Q.positive(x + y), Q.positive(x) & Q.positive(y)) is True
271
+ assert satask(Q.negative(x + y), Q.negative(x) & Q.negative(y)) is True
272
+ assert satask(Q.positive(x + y), Q.negative(x) & Q.negative(y)) is False
273
+ assert satask(Q.negative(x + y), Q.positive(x) & Q.positive(y)) is False
274
+
275
+
276
+ def test_pow_pos_neg():
277
+ assert satask(Q.nonnegative(x**2), Q.positive(x)) is True
278
+ assert satask(Q.nonpositive(x**2), Q.positive(x)) is False
279
+ assert satask(Q.positive(x**2), Q.positive(x)) is True
280
+ assert satask(Q.negative(x**2), Q.positive(x)) is False
281
+ assert satask(Q.real(x**2), Q.positive(x)) is True
282
+
283
+ assert satask(Q.nonnegative(x**2), Q.negative(x)) is True
284
+ assert satask(Q.nonpositive(x**2), Q.negative(x)) is False
285
+ assert satask(Q.positive(x**2), Q.negative(x)) is True
286
+ assert satask(Q.negative(x**2), Q.negative(x)) is False
287
+ assert satask(Q.real(x**2), Q.negative(x)) is True
288
+
289
+ assert satask(Q.nonnegative(x**2), Q.nonnegative(x)) is True
290
+ assert satask(Q.nonpositive(x**2), Q.nonnegative(x)) is None
291
+ assert satask(Q.positive(x**2), Q.nonnegative(x)) is None
292
+ assert satask(Q.negative(x**2), Q.nonnegative(x)) is False
293
+ assert satask(Q.real(x**2), Q.nonnegative(x)) is True
294
+
295
+ assert satask(Q.nonnegative(x**2), Q.nonpositive(x)) is True
296
+ assert satask(Q.nonpositive(x**2), Q.nonpositive(x)) is None
297
+ assert satask(Q.positive(x**2), Q.nonpositive(x)) is None
298
+ assert satask(Q.negative(x**2), Q.nonpositive(x)) is False
299
+ assert satask(Q.real(x**2), Q.nonpositive(x)) is True
300
+
301
+ assert satask(Q.nonnegative(x**3), Q.positive(x)) is True
302
+ assert satask(Q.nonpositive(x**3), Q.positive(x)) is False
303
+ assert satask(Q.positive(x**3), Q.positive(x)) is True
304
+ assert satask(Q.negative(x**3), Q.positive(x)) is False
305
+ assert satask(Q.real(x**3), Q.positive(x)) is True
306
+
307
+ assert satask(Q.nonnegative(x**3), Q.negative(x)) is False
308
+ assert satask(Q.nonpositive(x**3), Q.negative(x)) is True
309
+ assert satask(Q.positive(x**3), Q.negative(x)) is False
310
+ assert satask(Q.negative(x**3), Q.negative(x)) is True
311
+ assert satask(Q.real(x**3), Q.negative(x)) is True
312
+
313
+ assert satask(Q.nonnegative(x**3), Q.nonnegative(x)) is True
314
+ assert satask(Q.nonpositive(x**3), Q.nonnegative(x)) is None
315
+ assert satask(Q.positive(x**3), Q.nonnegative(x)) is None
316
+ assert satask(Q.negative(x**3), Q.nonnegative(x)) is False
317
+ assert satask(Q.real(x**3), Q.nonnegative(x)) is True
318
+
319
+ assert satask(Q.nonnegative(x**3), Q.nonpositive(x)) is None
320
+ assert satask(Q.nonpositive(x**3), Q.nonpositive(x)) is True
321
+ assert satask(Q.positive(x**3), Q.nonpositive(x)) is False
322
+ assert satask(Q.negative(x**3), Q.nonpositive(x)) is None
323
+ assert satask(Q.real(x**3), Q.nonpositive(x)) is True
324
+
325
+ # If x is zero, x**negative is not real.
326
+ assert satask(Q.nonnegative(x**-2), Q.nonpositive(x)) is None
327
+ assert satask(Q.nonpositive(x**-2), Q.nonpositive(x)) is None
328
+ assert satask(Q.positive(x**-2), Q.nonpositive(x)) is None
329
+ assert satask(Q.negative(x**-2), Q.nonpositive(x)) is None
330
+ assert satask(Q.real(x**-2), Q.nonpositive(x)) is None
331
+
332
+ # We could deduce things for negative powers if x is nonzero, but it
333
+ # isn't implemented yet.
334
+
335
+
336
+ def test_prime_composite():
337
+ assert satask(Q.prime(x), Q.composite(x)) is False
338
+ assert satask(Q.composite(x), Q.prime(x)) is False
339
+ assert satask(Q.composite(x), ~Q.prime(x)) is None
340
+ assert satask(Q.prime(x), ~Q.composite(x)) is None
341
+ # since 1 is neither prime nor composite the following should hold
342
+ assert satask(Q.prime(x), Q.integer(x) & Q.positive(x) & ~Q.composite(x)) is None
343
+ assert satask(Q.prime(2)) is True
344
+ assert satask(Q.prime(4)) is False
345
+ assert satask(Q.prime(1)) is False
346
+ assert satask(Q.composite(1)) is False
347
+
348
+
349
+ def test_extract_predargs():
350
+ props = CNF.from_prop(Q.zero(Abs(x*y)) & Q.zero(x*y))
351
+ assump = CNF.from_prop(Q.zero(x))
352
+ context = CNF.from_prop(Q.zero(y))
353
+ assert extract_predargs(props) == {Abs(x*y), x*y}
354
+ assert extract_predargs(props, assump) == {Abs(x*y), x*y, x}
355
+ assert extract_predargs(props, assump, context) == {Abs(x*y), x*y, x, y}
356
+
357
+ props = CNF.from_prop(Eq(x, y))
358
+ assump = CNF.from_prop(Gt(y, z))
359
+ assert extract_predargs(props, assump) == {x, y, z}
360
+
361
+
362
+ def test_get_relevant_clsfacts():
363
+ exprs = {Abs(x*y)}
364
+ exprs, facts = get_relevant_clsfacts(exprs)
365
+ assert exprs == {x*y}
366
+ assert facts.clauses == \
367
+ {frozenset({Literal(Q.odd(Abs(x*y)), False), Literal(Q.odd(x*y), True)}),
368
+ frozenset({Literal(Q.zero(Abs(x*y)), False), Literal(Q.zero(x*y), True)}),
369
+ frozenset({Literal(Q.even(Abs(x*y)), False), Literal(Q.even(x*y), True)}),
370
+ frozenset({Literal(Q.zero(Abs(x*y)), True), Literal(Q.zero(x*y), False)}),
371
+ frozenset({Literal(Q.even(Abs(x*y)), False),
372
+ Literal(Q.odd(Abs(x*y)), False),
373
+ Literal(Q.odd(x*y), True)}),
374
+ frozenset({Literal(Q.even(Abs(x*y)), False),
375
+ Literal(Q.even(x*y), True),
376
+ Literal(Q.odd(Abs(x*y)), False)}),
377
+ frozenset({Literal(Q.positive(Abs(x*y)), False),
378
+ Literal(Q.zero(Abs(x*y)), False)})}
openflamingo/lib/python3.10/site-packages/sympy/assumptions/tests/test_sathandlers.py ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from sympy.assumptions.ask import Q
2
+ from sympy.core.basic import Basic
3
+ from sympy.core.expr import Expr
4
+ from sympy.core.mul import Mul
5
+ from sympy.core.symbol import symbols
6
+ from sympy.logic.boolalg import (And, Or)
7
+
8
+ from sympy.assumptions.sathandlers import (ClassFactRegistry, allargs,
9
+ anyarg, exactlyonearg,)
10
+
11
+ x, y, z = symbols('x y z')
12
+
13
+
14
+ def test_class_handler_registry():
15
+ my_handler_registry = ClassFactRegistry()
16
+
17
+ # The predicate doesn't matter here, so just pass
18
+ @my_handler_registry.register(Mul)
19
+ def fact1(expr):
20
+ pass
21
+ @my_handler_registry.multiregister(Expr)
22
+ def fact2(expr):
23
+ pass
24
+
25
+ assert my_handler_registry[Basic] == (frozenset(), frozenset())
26
+ assert my_handler_registry[Expr] == (frozenset(), frozenset({fact2}))
27
+ assert my_handler_registry[Mul] == (frozenset({fact1}), frozenset({fact2}))
28
+
29
+
30
+ def test_allargs():
31
+ assert allargs(x, Q.zero(x), x*y) == And(Q.zero(x), Q.zero(y))
32
+ assert allargs(x, Q.positive(x) | Q.negative(x), x*y) == And(Q.positive(x) | Q.negative(x), Q.positive(y) | Q.negative(y))
33
+
34
+
35
+ def test_anyarg():
36
+ assert anyarg(x, Q.zero(x), x*y) == Or(Q.zero(x), Q.zero(y))
37
+ assert anyarg(x, Q.positive(x) & Q.negative(x), x*y) == \
38
+ Or(Q.positive(x) & Q.negative(x), Q.positive(y) & Q.negative(y))
39
+
40
+
41
+ def test_exactlyonearg():
42
+ assert exactlyonearg(x, Q.zero(x), x*y) == \
43
+ Or(Q.zero(x) & ~Q.zero(y), Q.zero(y) & ~Q.zero(x))
44
+ assert exactlyonearg(x, Q.zero(x), x*y*z) == \
45
+ Or(Q.zero(x) & ~Q.zero(y) & ~Q.zero(z), Q.zero(y)
46
+ & ~Q.zero(x) & ~Q.zero(z), Q.zero(z) & ~Q.zero(x) & ~Q.zero(y))
47
+ assert exactlyonearg(x, Q.positive(x) | Q.negative(x), x*y) == \
48
+ Or((Q.positive(x) | Q.negative(x)) &
49
+ ~(Q.positive(y) | Q.negative(y)), (Q.positive(y) | Q.negative(y)) &
50
+ ~(Q.positive(x) | Q.negative(x)))
openflamingo/lib/python3.10/site-packages/sympy/polys/benchmarks/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (180 Bytes). View file
 
openflamingo/lib/python3.10/site-packages/sympy/polys/benchmarks/__pycache__/bench_galoispolys.cpython-310.pyc ADDED
Binary file (2.27 kB). View file
 
openflamingo/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')
openflamingo/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (1.69 kB). View file
 
openflamingo/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/expressiondomain.cpython-310.pyc ADDED
Binary file (11 kB). View file
 
openflamingo/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/gmpyintegerring.cpython-310.pyc ADDED
Binary file (4.33 kB). View file
 
openflamingo/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/gmpyrationalfield.cpython-310.pyc ADDED
Binary file (4.47 kB). View file
 
openflamingo/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/old_fractionfield.cpython-310.pyc ADDED
Binary file (7.61 kB). View file
 
openflamingo/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/old_polynomialring.cpython-310.pyc ADDED
Binary file (18.7 kB). View file
 
openflamingo/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/pythonfinitefield.cpython-310.pyc ADDED
Binary file (910 Bytes). View file
 
openflamingo/lib/python3.10/site-packages/sympy/polys/domains/__pycache__/simpledomain.cpython-310.pyc ADDED
Binary file (767 Bytes). View file
 
openflamingo/lib/python3.10/site-packages/sympy/polys/matrices/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (597 Bytes). View file
 
openflamingo/lib/python3.10/site-packages/sympy/polys/matrices/__pycache__/_dfm.cpython-310.pyc ADDED
Binary file (25.4 kB). View file
 
openflamingo/lib/python3.10/site-packages/sympy/polys/matrices/__pycache__/dense.cpython-310.pyc ADDED
Binary file (18.8 kB). View file
 
openflamingo/lib/python3.10/site-packages/sympy/polys/matrices/__pycache__/dfm.cpython-310.pyc ADDED
Binary file (1.22 kB). View file
 
openflamingo/lib/python3.10/site-packages/sympy/polys/matrices/__pycache__/domainscalar.cpython-310.pyc ADDED
Binary file (4.62 kB). View file
 
openflamingo/lib/python3.10/site-packages/sympy/polys/matrices/__pycache__/eigen.cpython-310.pyc ADDED
Binary file (3.8 kB). View file
 
openflamingo/lib/python3.10/site-packages/sympy/polys/matrices/__pycache__/linsolve.cpython-310.pyc ADDED
Binary file (5.42 kB). View file
 
openflamingo/lib/python3.10/site-packages/sympy/polys/matrices/__pycache__/lll.cpython-310.pyc ADDED
Binary file (4.94 kB). View file
 
openflamingo/lib/python3.10/site-packages/sympy/polys/matrices/__pycache__/rref.cpython-310.pyc ADDED
Binary file (8.54 kB). View file
 
openflamingo/lib/python3.10/site-packages/sympy/polys/matrices/tests/__pycache__/test_xxm.cpython-310.pyc ADDED
Binary file (27.9 kB). View file
 
openflamingo/lib/python3.10/site-packages/sympy/polys/numberfields/__init__.py ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Computational algebraic field theory. """
2
+
3
+ __all__ = [
4
+ 'minpoly', 'minimal_polynomial',
5
+
6
+ 'field_isomorphism', 'primitive_element', 'to_number_field',
7
+
8
+ 'isolate',
9
+
10
+ 'round_two',
11
+
12
+ 'prime_decomp', 'prime_valuation',
13
+
14
+ 'galois_group',
15
+ ]
16
+
17
+ from .minpoly import minpoly, minimal_polynomial
18
+
19
+ from .subfield import field_isomorphism, primitive_element, to_number_field
20
+
21
+ from .utilities import isolate
22
+
23
+ from .basis import round_two
24
+
25
+ from .primes import prime_decomp, prime_valuation
26
+
27
+ from .galoisgroups import galois_group
openflamingo/lib/python3.10/site-packages/sympy/polys/numberfields/exceptions.py ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Special exception classes for numberfields. """
2
+
3
+
4
+ class ClosureFailure(Exception):
5
+ r"""
6
+ Signals that a :py:class:`ModuleElement` which we tried to represent in a
7
+ certain :py:class:`Module` cannot in fact be represented there.
8
+
9
+ Examples
10
+ ========
11
+
12
+ >>> from sympy.polys import Poly, cyclotomic_poly, ZZ
13
+ >>> from sympy.polys.matrices import DomainMatrix
14
+ >>> from sympy.polys.numberfields.modules import PowerBasis, to_col
15
+ >>> T = Poly(cyclotomic_poly(5))
16
+ >>> A = PowerBasis(T)
17
+ >>> B = A.submodule_from_matrix(2 * DomainMatrix.eye(4, ZZ))
18
+
19
+ Because we are in a cyclotomic field, the power basis ``A`` is an integral
20
+ basis, and the submodule ``B`` is just the ideal $(2)$. Therefore ``B`` can
21
+ represent an element having all even coefficients over the power basis:
22
+
23
+ >>> a1 = A(to_col([2, 4, 6, 8]))
24
+ >>> print(B.represent(a1))
25
+ DomainMatrix([[1], [2], [3], [4]], (4, 1), ZZ)
26
+
27
+ but ``B`` cannot represent an element with an odd coefficient:
28
+
29
+ >>> a2 = A(to_col([1, 2, 2, 2]))
30
+ >>> B.represent(a2)
31
+ Traceback (most recent call last):
32
+ ...
33
+ ClosureFailure: Element in QQ-span but not ZZ-span of this basis.
34
+
35
+ """
36
+ pass
37
+
38
+
39
+ class StructureError(Exception):
40
+ r"""
41
+ Represents cases in which an algebraic structure was expected to have a
42
+ certain property, or be of a certain type, but was not.
43
+ """
44
+ pass
45
+
46
+
47
+ class MissingUnityError(StructureError):
48
+ r"""Structure should contain a unity element but does not."""
49
+ pass
50
+
51
+
52
+ __all__ = [
53
+ 'ClosureFailure', 'StructureError', 'MissingUnityError',
54
+ ]
openflamingo/lib/python3.10/site-packages/sympy/polys/numberfields/resolvent_lookup.py ADDED
@@ -0,0 +1,456 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Lookup table for Galois resolvents for polys of degree 4 through 6. """
2
+ # This table was generated by a call to
3
+ # `sympy.polys.numberfields.galois_resolvents.generate_lambda_lookup()`.
4
+ # The entire job took 543.23s.
5
+ # Of this, Case (6, 1) took 539.03s.
6
+ # The final polynomial of Case (6, 1) alone took 455.09s.
7
+ resolvent_coeff_lambdas = {
8
+ (4, 0): [
9
+ lambda s1, s2, s3, s4: (-2*s1*s2 + 6*s3),
10
+ lambda s1, s2, s3, s4: (2*s1**3*s3 + s1**2*s2**2 + s1**2*s4 - 17*s1*s2*s3 + 2*s2**3 - 8*s2*s4 + 24*s3**2),
11
+ lambda s1, s2, s3, s4: (-2*s1**5*s4 - 2*s1**4*s2*s3 + 10*s1**3*s2*s4 + 8*s1**3*s3**2 + 10*s1**2*s2**2*s3 -
12
+ 12*s1**2*s3*s4 - 2*s1*s2**4 - 54*s1*s2*s3**2 + 32*s1*s4**2 + 8*s2**3*s3 - 32*s2*s3*s4
13
+ + 56*s3**3),
14
+ lambda s1, s2, s3, s4: (2*s1**6*s2*s4 + s1**6*s3**2 - 5*s1**5*s3*s4 - 11*s1**4*s2**2*s4 - 13*s1**4*s2*s3**2
15
+ + 7*s1**4*s4**2 + 3*s1**3*s2**3*s3 + 30*s1**3*s2*s3*s4 + 22*s1**3*s3**3 + 10*s1**2*s2**3*s4
16
+ + 33*s1**2*s2**2*s3**2 - 72*s1**2*s2*s4**2 - 36*s1**2*s3**2*s4 - 13*s1*s2**4*s3 +
17
+ 48*s1*s2**2*s3*s4 - 116*s1*s2*s3**3 + 144*s1*s3*s4**2 + s2**6 - 12*s2**4*s4 + 22*s2**3*s3**2
18
+ + 48*s2**2*s4**2 - 120*s2*s3**2*s4 + 96*s3**4 - 64*s4**3),
19
+ lambda s1, s2, s3, s4: (-2*s1**8*s3*s4 - s1**7*s4**2 + 22*s1**6*s2*s3*s4 + 2*s1**6*s3**3 - 2*s1**5*s2**3*s4
20
+ - s1**5*s2**2*s3**2 - 29*s1**5*s3**2*s4 - 60*s1**4*s2**2*s3*s4 - 19*s1**4*s2*s3**3
21
+ + 38*s1**4*s3*s4**2 + 9*s1**3*s2**4*s4 + 10*s1**3*s2**3*s3**2 + 24*s1**3*s2**2*s4**2
22
+ + 134*s1**3*s2*s3**2*s4 + 28*s1**3*s3**4 + 16*s1**3*s4**3 - s1**2*s2**5*s3 - 4*s1**2*s2**3*s3*s4
23
+ + 34*s1**2*s2**2*s3**3 - 288*s1**2*s2*s3*s4**2 - 104*s1**2*s3**3*s4 - 19*s1*s2**4*s3**2
24
+ + 120*s1*s2**2*s3**2*s4 - 128*s1*s2*s3**4 + 336*s1*s3**2*s4**2 + 2*s2**6*s3 - 24*s2**4*s3*s4
25
+ + 28*s2**3*s3**3 + 96*s2**2*s3*s4**2 - 176*s2*s3**3*s4 + 96*s3**5 - 128*s3*s4**3),
26
+ lambda s1, s2, s3, s4: (s1**10*s4**2 - 11*s1**8*s2*s4**2 - 2*s1**8*s3**2*s4 + s1**7*s2**2*s3*s4 + 15*s1**7*s3*s4**2
27
+ + 45*s1**6*s2**2*s4**2 + 17*s1**6*s2*s3**2*s4 + s1**6*s3**4 - 5*s1**6*s4**3 - 12*s1**5*s2**3*s3*s4
28
+ - 133*s1**5*s2*s3*s4**2 - 22*s1**5*s3**3*s4 + s1**4*s2**5*s4 - 76*s1**4*s2**3*s4**2
29
+ - 6*s1**4*s2**2*s3**2*s4 - 12*s1**4*s2*s3**4 + 32*s1**4*s2*s4**3 + 128*s1**4*s3**2*s4**2
30
+ + 29*s1**3*s2**4*s3*s4 + 2*s1**3*s2**3*s3**3 + 344*s1**3*s2**2*s3*s4**2 + 48*s1**3*s2*s3**3*s4
31
+ + 16*s1**3*s3**5 - 48*s1**3*s3*s4**3 - 4*s1**2*s2**6*s4 + 32*s1**2*s2**4*s4**2 - 134*s1**2*s2**3*s3**2*s4
32
+ + 36*s1**2*s2**2*s3**4 - 64*s1**2*s2**2*s4**3 - 648*s1**2*s2*s3**2*s4**2 - 48*s1**2*s3**4*s4
33
+ + 16*s1*s2**5*s3*s4 - 12*s1*s2**4*s3**3 - 128*s1*s2**3*s3*s4**2 + 296*s1*s2**2*s3**3*s4
34
+ - 96*s1*s2*s3**5 + 256*s1*s2*s3*s4**3 + 416*s1*s3**3*s4**2 + s2**6*s3**2 - 28*s2**4*s3**2*s4
35
+ + 16*s2**3*s3**4 + 176*s2**2*s3**2*s4**2 - 224*s2*s3**4*s4 + 64*s3**6 - 320*s3**2*s4**3)
36
+ ],
37
+ (4, 1): [
38
+ lambda s1, s2, s3, s4: (-s2),
39
+ lambda s1, s2, s3, s4: (s1*s3 - 4*s4),
40
+ lambda s1, s2, s3, s4: (-s1**2*s4 + 4*s2*s4 - s3**2)
41
+ ],
42
+ (5, 1): [
43
+ lambda s1, s2, s3, s4, s5: (-2*s1*s3 + 8*s4),
44
+ lambda s1, s2, s3, s4, s5: (-8*s1**3*s5 + 2*s1**2*s2*s4 + s1**2*s3**2 + 30*s1*s2*s5 - 14*s1*s3*s4 - 6*s2**2*s4
45
+ + 2*s2*s3**2 - 50*s3*s5 + 40*s4**2),
46
+ lambda s1, s2, s3, s4, s5: (16*s1**4*s3*s5 - 2*s1**4*s4**2 - 2*s1**3*s2**2*s5 - 2*s1**3*s2*s3*s4 - 44*s1**3*s4*s5
47
+ - 66*s1**2*s2*s3*s5 + 21*s1**2*s2*s4**2 + 6*s1**2*s3**2*s4 - 50*s1**2*s5**2 + 9*s1*s2**3*s5
48
+ + 5*s1*s2**2*s3*s4 - 2*s1*s2*s3**3 + 190*s1*s2*s4*s5 + 120*s1*s3**2*s5 - 80*s1*s3*s4**2
49
+ - 15*s2**2*s3*s5 - 40*s2**2*s4**2 + 21*s2*s3**2*s4 + 125*s2*s5**2 - 2*s3**4 - 400*s3*s4*s5
50
+ + 160*s4**3),
51
+ lambda s1, s2, s3, s4, s5: (16*s1**6*s5**2 - 8*s1**5*s2*s4*s5 - 8*s1**5*s3**2*s5 + 2*s1**5*s3*s4**2 + 2*s1**4*s2**2*s3*s5
52
+ + s1**4*s2**2*s4**2 - 120*s1**4*s2*s5**2 + 68*s1**4*s3*s4*s5 - 8*s1**4*s4**3 + 46*s1**3*s2**2*s4*s5
53
+ + 28*s1**3*s2*s3**2*s5 - 19*s1**3*s2*s3*s4**2 + 250*s1**3*s3*s5**2 - 144*s1**3*s4**2*s5
54
+ - 9*s1**2*s2**3*s3*s5 - 6*s1**2*s2**3*s4**2 + 3*s1**2*s2**2*s3**2*s4 + 225*s1**2*s2**2*s5**2
55
+ - 354*s1**2*s2*s3*s4*s5 + 76*s1**2*s2*s4**3 - 70*s1**2*s3**3*s5 + 41*s1**2*s3**2*s4**2
56
+ - 200*s1**2*s4*s5**2 - 54*s1*s2**3*s4*s5 + 45*s1*s2**2*s3**2*s5 + 30*s1*s2**2*s3*s4**2
57
+ - 19*s1*s2*s3**3*s4 - 875*s1*s2*s3*s5**2 + 640*s1*s2*s4**2*s5 + 2*s1*s3**5 + 630*s1*s3**2*s4*s5
58
+ - 264*s1*s3*s4**3 + 9*s2**4*s4**2 - 6*s2**3*s3**2*s4 + s2**2*s3**4 + 90*s2**2*s3*s4*s5
59
+ - 136*s2**2*s4**3 - 50*s2*s3**3*s5 + 76*s2*s3**2*s4**2 + 500*s2*s4*s5**2 - 8*s3**4*s4
60
+ + 625*s3**2*s5**2 - 1400*s3*s4**2*s5 + 400*s4**4),
61
+ lambda s1, s2, s3, s4, s5: (-32*s1**7*s3*s5**2 + 8*s1**7*s4**2*s5 + 8*s1**6*s2**2*s5**2 + 8*s1**6*s2*s3*s4*s5
62
+ - 2*s1**6*s2*s4**3 + 48*s1**6*s4*s5**2 - 2*s1**5*s2**3*s4*s5 + 264*s1**5*s2*s3*s5**2
63
+ - 94*s1**5*s2*s4**2*s5 - 24*s1**5*s3**2*s4*s5 + 6*s1**5*s3*s4**3 - 56*s1**5*s5**3
64
+ - 66*s1**4*s2**3*s5**2 - 50*s1**4*s2**2*s3*s4*s5 + 19*s1**4*s2**2*s4**3 + 8*s1**4*s2*s3**3*s5
65
+ - 2*s1**4*s2*s3**2*s4**2 - 318*s1**4*s2*s4*s5**2 - 352*s1**4*s3**2*s5**2 + 166*s1**4*s3*s4**2*s5
66
+ + 3*s1**4*s4**4 + 15*s1**3*s2**4*s4*s5 - 2*s1**3*s2**3*s3**2*s5 - s1**3*s2**3*s3*s4**2
67
+ - 574*s1**3*s2**2*s3*s5**2 + 347*s1**3*s2**2*s4**2*s5 + 194*s1**3*s2*s3**2*s4*s5 -
68
+ 89*s1**3*s2*s3*s4**3 + 350*s1**3*s2*s5**3 - 8*s1**3*s3**4*s5 + 4*s1**3*s3**3*s4**2
69
+ + 1090*s1**3*s3*s4*s5**2 - 364*s1**3*s4**3*s5 + 162*s1**2*s2**4*s5**2 + 33*s1**2*s2**3*s3*s4*s5
70
+ - 51*s1**2*s2**3*s4**3 - 32*s1**2*s2**2*s3**3*s5 + 28*s1**2*s2**2*s3**2*s4**2 + 305*s1**2*s2**2*s4*s5**2
71
+ - 2*s1**2*s2*s3**4*s4 + 1340*s1**2*s2*s3**2*s5**2 - 901*s1**2*s2*s3*s4**2*s5 + 76*s1**2*s2*s4**4
72
+ - 234*s1**2*s3**3*s4*s5 + 102*s1**2*s3**2*s4**3 - 750*s1**2*s3*s5**3 - 550*s1**2*s4**2*s5**2
73
+ - 27*s1*s2**5*s4*s5 + 9*s1*s2**4*s3**2*s5 + 3*s1*s2**4*s3*s4**2 - s1*s2**3*s3**3*s4
74
+ + 180*s1*s2**3*s3*s5**2 - 366*s1*s2**3*s4**2*s5 - 231*s1*s2**2*s3**2*s4*s5 + 212*s1*s2**2*s3*s4**3
75
+ - 375*s1*s2**2*s5**3 + 112*s1*s2*s3**4*s5 - 89*s1*s2*s3**3*s4**2 - 3075*s1*s2*s3*s4*s5**2
76
+ + 1640*s1*s2*s4**3*s5 + 6*s1*s3**5*s4 - 850*s1*s3**3*s5**2 + 1220*s1*s3**2*s4**2*s5
77
+ - 384*s1*s3*s4**4 + 2500*s1*s4*s5**3 - 108*s2**5*s5**2 + 117*s2**4*s3*s4*s5 + 32*s2**4*s4**3
78
+ - 31*s2**3*s3**3*s5 - 51*s2**3*s3**2*s4**2 + 525*s2**3*s4*s5**2 + 19*s2**2*s3**4*s4
79
+ - 325*s2**2*s3**2*s5**2 + 260*s2**2*s3*s4**2*s5 - 256*s2**2*s4**4 - 2*s2*s3**6 + 105*s2*s3**3*s4*s5
80
+ + 76*s2*s3**2*s4**3 + 625*s2*s3*s5**3 - 500*s2*s4**2*s5**2 - 58*s3**5*s5 + 3*s3**4*s4**2
81
+ + 2750*s3**2*s4*s5**2 - 2400*s3*s4**3*s5 + 512*s4**5 - 3125*s5**4),
82
+ lambda s1, s2, s3, s4, s5: (16*s1**8*s3**2*s5**2 - 8*s1**8*s3*s4**2*s5 + s1**8*s4**4 - 8*s1**7*s2**2*s3*s5**2
83
+ + 2*s1**7*s2**2*s4**2*s5 - 48*s1**7*s3*s4*s5**2 + 12*s1**7*s4**3*s5 + s1**6*s2**4*s5**2
84
+ + 12*s1**6*s2**2*s4*s5**2 - 144*s1**6*s2*s3**2*s5**2 + 88*s1**6*s2*s3*s4**2*s5 - 13*s1**6*s2*s4**4
85
+ + 56*s1**6*s3*s5**3 + 86*s1**6*s4**2*s5**2 + 72*s1**5*s2**3*s3*s5**2 - 22*s1**5*s2**3*s4**2*s5
86
+ - 4*s1**5*s2**2*s3**2*s4*s5 + s1**5*s2**2*s3*s4**3 - 14*s1**5*s2**2*s5**3 + 304*s1**5*s2*s3*s4*s5**2
87
+ - 148*s1**5*s2*s4**3*s5 + 152*s1**5*s3**3*s5**2 - 54*s1**5*s3**2*s4**2*s5 + 5*s1**5*s3*s4**4
88
+ - 468*s1**5*s4*s5**3 - 9*s1**4*s2**5*s5**2 + s1**4*s2**4*s3*s4*s5 - 76*s1**4*s2**3*s4*s5**2
89
+ + 370*s1**4*s2**2*s3**2*s5**2 - 287*s1**4*s2**2*s3*s4**2*s5 + 65*s1**4*s2**2*s4**4
90
+ - 28*s1**4*s2*s3**3*s4*s5 + 5*s1**4*s2*s3**2*s4**3 - 200*s1**4*s2*s3*s5**3 - 294*s1**4*s2*s4**2*s5**2
91
+ + 8*s1**4*s3**5*s5 - 2*s1**4*s3**4*s4**2 - 676*s1**4*s3**2*s4*s5**2 + 180*s1**4*s3*s4**3*s5
92
+ + 17*s1**4*s4**5 + 625*s1**4*s5**4 - 210*s1**3*s2**4*s3*s5**2 + 76*s1**3*s2**4*s4**2*s5
93
+ + 43*s1**3*s2**3*s3**2*s4*s5 - 15*s1**3*s2**3*s3*s4**3 + 50*s1**3*s2**3*s5**3 - 6*s1**3*s2**2*s3**4*s5
94
+ + 2*s1**3*s2**2*s3**3*s4**2 - 397*s1**3*s2**2*s3*s4*s5**2 + 514*s1**3*s2**2*s4**3*s5
95
+ - 700*s1**3*s2*s3**3*s5**2 + 447*s1**3*s2*s3**2*s4**2*s5 - 118*s1**3*s2*s3*s4**4 +
96
+ 2300*s1**3*s2*s4*s5**3 - 12*s1**3*s3**4*s4*s5 + 6*s1**3*s3**3*s4**3 + 250*s1**3*s3**2*s5**3
97
+ + 1470*s1**3*s3*s4**2*s5**2 - 276*s1**3*s4**4*s5 + 27*s1**2*s2**6*s5**2 - 9*s1**2*s2**5*s3*s4*s5
98
+ + s1**2*s2**5*s4**3 + s1**2*s2**4*s3**3*s5 + 141*s1**2*s2**4*s4*s5**2 - 185*s1**2*s2**3*s3**2*s5**2
99
+ + 168*s1**2*s2**3*s3*s4**2*s5 - 128*s1**2*s2**3*s4**4 + 93*s1**2*s2**2*s3**3*s4*s5
100
+ + 19*s1**2*s2**2*s3**2*s4**3 - 125*s1**2*s2**2*s3*s5**3 - 610*s1**2*s2**2*s4**2*s5**2
101
+ - 36*s1**2*s2*s3**5*s5 + 5*s1**2*s2*s3**4*s4**2 + 1995*s1**2*s2*s3**2*s4*s5**2 - 1174*s1**2*s2*s3*s4**3*s5
102
+ - 16*s1**2*s2*s4**5 - 3125*s1**2*s2*s5**4 + 375*s1**2*s3**4*s5**2 - 172*s1**2*s3**3*s4**2*s5
103
+ + 82*s1**2*s3**2*s4**4 - 3500*s1**2*s3*s4*s5**3 - 1450*s1**2*s4**3*s5**2 + 198*s1*s2**5*s3*s5**2
104
+ - 78*s1*s2**5*s4**2*s5 - 95*s1*s2**4*s3**2*s4*s5 + 44*s1*s2**4*s3*s4**3 + 25*s1*s2**3*s3**4*s5
105
+ - 15*s1*s2**3*s3**3*s4**2 + 15*s1*s2**3*s3*s4*s5**2 - 384*s1*s2**3*s4**3*s5 + s1*s2**2*s3**5*s4
106
+ + 525*s1*s2**2*s3**3*s5**2 - 528*s1*s2**2*s3**2*s4**2*s5 + 384*s1*s2**2*s3*s4**4 -
107
+ 1750*s1*s2**2*s4*s5**3 - 29*s1*s2*s3**4*s4*s5 - 118*s1*s2*s3**3*s4**3 + 625*s1*s2*s3**2*s5**3
108
+ - 850*s1*s2*s3*s4**2*s5**2 + 1760*s1*s2*s4**4*s5 + 38*s1*s3**6*s5 + 5*s1*s3**5*s4**2
109
+ - 2050*s1*s3**3*s4*s5**2 + 780*s1*s3**2*s4**3*s5 - 192*s1*s3*s4**5 + 3125*s1*s3*s5**4
110
+ + 7500*s1*s4**2*s5**3 - 27*s2**7*s5**2 + 18*s2**6*s3*s4*s5 - 4*s2**6*s4**3 - 4*s2**5*s3**3*s5
111
+ + s2**5*s3**2*s4**2 - 99*s2**5*s4*s5**2 - 150*s2**4*s3**2*s5**2 + 196*s2**4*s3*s4**2*s5
112
+ + 48*s2**4*s4**4 + 12*s2**3*s3**3*s4*s5 - 128*s2**3*s3**2*s4**3 + 1200*s2**3*s4**2*s5**2
113
+ - 12*s2**2*s3**5*s5 + 65*s2**2*s3**4*s4**2 - 725*s2**2*s3**2*s4*s5**2 - 160*s2**2*s3*s4**3*s5
114
+ - 192*s2**2*s4**5 + 3125*s2**2*s5**4 - 13*s2*s3**6*s4 - 125*s2*s3**4*s5**2 + 590*s2*s3**3*s4**2*s5
115
+ - 16*s2*s3**2*s4**4 - 1250*s2*s3*s4*s5**3 - 2000*s2*s4**3*s5**2 + s3**8 - 124*s3**5*s4*s5
116
+ + 17*s3**4*s4**3 + 3250*s3**2*s4**2*s5**2 - 1600*s3*s4**4*s5 + 256*s4**6 - 9375*s4*s5**4)
117
+ ],
118
+ (6, 1): [
119
+ lambda s1, s2, s3, s4, s5, s6: (8*s1*s5 - 2*s2*s4 - 18*s6),
120
+ lambda s1, s2, s3, s4, s5, s6: (-50*s1**2*s4*s6 + 40*s1**2*s5**2 + 30*s1*s2*s3*s6 - 14*s1*s2*s4*s5 - 6*s1*s3**2*s5
121
+ + 2*s1*s3*s4**2 - 30*s1*s5*s6 - 8*s2**3*s6 + 2*s2**2*s3*s5 + s2**2*s4**2 + 114*s2*s4*s6
122
+ - 50*s2*s5**2 - 54*s3**2*s6 + 30*s3*s4*s5 - 8*s4**3 - 135*s6**2),
123
+ lambda s1, s2, s3, s4, s5, s6: (125*s1**3*s3*s6**2 - 400*s1**3*s4*s5*s6 + 160*s1**3*s5**3 - 50*s1**2*s2**2*s6**2 +
124
+ 190*s1**2*s2*s3*s5*s6 + 120*s1**2*s2*s4**2*s6 - 80*s1**2*s2*s4*s5**2 - 15*s1**2*s3**2*s4*s6
125
+ - 40*s1**2*s3**2*s5**2 + 21*s1**2*s3*s4**2*s5 - 2*s1**2*s4**4 + 900*s1**2*s4*s6**2
126
+ - 80*s1**2*s5**2*s6 - 44*s1*s2**3*s5*s6 - 66*s1*s2**2*s3*s4*s6 + 21*s1*s2**2*s3*s5**2
127
+ + 6*s1*s2**2*s4**2*s5 + 9*s1*s2*s3**3*s6 + 5*s1*s2*s3**2*s4*s5 - 2*s1*s2*s3*s4**3
128
+ - 990*s1*s2*s3*s6**2 + 920*s1*s2*s4*s5*s6 - 400*s1*s2*s5**3 - 135*s1*s3**2*s5*s6 -
129
+ 126*s1*s3*s4**2*s6 + 190*s1*s3*s4*s5**2 - 44*s1*s4**3*s5 - 2070*s1*s5*s6**2 + 16*s2**4*s4*s6
130
+ - 2*s2**4*s5**2 - 2*s2**3*s3**2*s6 - 2*s2**3*s3*s4*s5 + 304*s2**3*s6**2 - 126*s2**2*s3*s5*s6
131
+ - 232*s2**2*s4**2*s6 + 120*s2**2*s4*s5**2 + 198*s2*s3**2*s4*s6 - 15*s2*s3**2*s5**2
132
+ - 66*s2*s3*s4**2*s5 + 16*s2*s4**4 - 1440*s2*s4*s6**2 + 900*s2*s5**2*s6 - 27*s3**4*s6
133
+ + 9*s3**3*s4*s5 - 2*s3**2*s4**3 + 1350*s3**2*s6**2 - 990*s3*s4*s5*s6 + 125*s3*s5**3
134
+ + 304*s4**3*s6 - 50*s4**2*s5**2 + 3240*s6**3),
135
+ lambda s1, s2, s3, s4, s5, s6: (500*s1**4*s3*s5*s6**2 + 625*s1**4*s4**2*s6**2 - 1400*s1**4*s4*s5**2*s6 + 400*s1**4*s5**4
136
+ - 200*s1**3*s2**2*s5*s6**2 - 875*s1**3*s2*s3*s4*s6**2 + 640*s1**3*s2*s3*s5**2*s6 +
137
+ 630*s1**3*s2*s4**2*s5*s6 - 264*s1**3*s2*s4*s5**3 + 90*s1**3*s3**2*s4*s5*s6 - 136*s1**3*s3**2*s5**3
138
+ - 50*s1**3*s3*s4**3*s6 + 76*s1**3*s3*s4**2*s5**2 - 1125*s1**3*s3*s6**3 - 8*s1**3*s4**4*s5
139
+ + 2550*s1**3*s4*s5*s6**2 - 200*s1**3*s5**3*s6 + 250*s1**2*s2**3*s4*s6**2 - 144*s1**2*s2**3*s5**2*s6
140
+ + 225*s1**2*s2**2*s3**2*s6**2 - 354*s1**2*s2**2*s3*s4*s5*s6 + 76*s1**2*s2**2*s3*s5**3
141
+ - 70*s1**2*s2**2*s4**3*s6 + 41*s1**2*s2**2*s4**2*s5**2 + 450*s1**2*s2**2*s6**3 - 54*s1**2*s2*s3**3*s5*s6
142
+ + 45*s1**2*s2*s3**2*s4**2*s6 + 30*s1**2*s2*s3**2*s4*s5**2 - 19*s1**2*s2*s3*s4**3*s5
143
+ - 2880*s1**2*s2*s3*s5*s6**2 + 2*s1**2*s2*s4**5 - 3480*s1**2*s2*s4**2*s6**2 + 4692*s1**2*s2*s4*s5**2*s6
144
+ - 1400*s1**2*s2*s5**4 + 9*s1**2*s3**4*s5**2 - 6*s1**2*s3**3*s4**2*s5 + s1**2*s3**2*s4**4
145
+ + 1485*s1**2*s3**2*s4*s6**2 - 522*s1**2*s3**2*s5**2*s6 - 1257*s1**2*s3*s4**2*s5*s6
146
+ + 640*s1**2*s3*s4*s5**3 + 218*s1**2*s4**4*s6 - 144*s1**2*s4**3*s5**2 + 1350*s1**2*s4*s6**3
147
+ - 5175*s1**2*s5**2*s6**2 - 120*s1*s2**4*s3*s6**2 + 68*s1*s2**4*s4*s5*s6 - 8*s1*s2**4*s5**3
148
+ + 46*s1*s2**3*s3**2*s5*s6 + 28*s1*s2**3*s3*s4**2*s6 - 19*s1*s2**3*s3*s4*s5**2 + 868*s1*s2**3*s5*s6**2
149
+ - 9*s1*s2**2*s3**3*s4*s6 - 6*s1*s2**2*s3**3*s5**2 + 3*s1*s2**2*s3**2*s4**2*s5 + 2484*s1*s2**2*s3*s4*s6**2
150
+ - 1257*s1*s2**2*s3*s5**2*s6 - 1356*s1*s2**2*s4**2*s5*s6 + 630*s1*s2**2*s4*s5**3 -
151
+ 891*s1*s2*s3**3*s6**2 + 882*s1*s2*s3**2*s4*s5*s6 + 90*s1*s2*s3**2*s5**3 + 84*s1*s2*s3*s4**3*s6
152
+ - 354*s1*s2*s3*s4**2*s5**2 + 3240*s1*s2*s3*s6**3 + 68*s1*s2*s4**4*s5 - 4392*s1*s2*s4*s5*s6**2
153
+ + 2550*s1*s2*s5**3*s6 + 54*s1*s3**4*s5*s6 - 54*s1*s3**3*s4**2*s6 - 54*s1*s3**3*s4*s5**2
154
+ + 46*s1*s3**2*s4**3*s5 + 2727*s1*s3**2*s5*s6**2 - 8*s1*s3*s4**5 + 756*s1*s3*s4**2*s6**2
155
+ - 2880*s1*s3*s4*s5**2*s6 + 500*s1*s3*s5**4 + 868*s1*s4**3*s5*s6 - 200*s1*s4**2*s5**3
156
+ + 8100*s1*s5*s6**3 + 16*s2**6*s6**2 - 8*s2**5*s3*s5*s6 - 8*s2**5*s4**2*s6 + 2*s2**5*s4*s5**2
157
+ + 2*s2**4*s3**2*s4*s6 + s2**4*s3**2*s5**2 - 688*s2**4*s4*s6**2 + 218*s2**4*s5**2*s6
158
+ + 234*s2**3*s3**2*s6**2 + 84*s2**3*s3*s4*s5*s6 - 50*s2**3*s3*s5**3 + 168*s2**3*s4**3*s6
159
+ - 70*s2**3*s4**2*s5**2 - 1224*s2**3*s6**3 - 54*s2**2*s3**3*s5*s6 - 144*s2**2*s3**2*s4**2*s6
160
+ + 45*s2**2*s3**2*s4*s5**2 + 28*s2**2*s3*s4**3*s5 + 756*s2**2*s3*s5*s6**2 - 8*s2**2*s4**5
161
+ + 4320*s2**2*s4**2*s6**2 - 3480*s2**2*s4*s5**2*s6 + 625*s2**2*s5**4 + 27*s2*s3**4*s4*s6
162
+ - 9*s2*s3**3*s4**2*s5 + 2*s2*s3**2*s4**4 - 4752*s2*s3**2*s4*s6**2 + 1485*s2*s3**2*s5**2*s6
163
+ + 2484*s2*s3*s4**2*s5*s6 - 875*s2*s3*s4*s5**3 - 688*s2*s4**4*s6 + 250*s2*s4**3*s5**2
164
+ - 4536*s2*s4*s6**3 + 1350*s2*s5**2*s6**2 + 972*s3**4*s6**2 - 891*s3**3*s4*s5*s6 +
165
+ 234*s3**2*s4**3*s6 + 225*s3**2*s4**2*s5**2 - 1944*s3**2*s6**3 - 120*s3*s4**4*s5 +
166
+ 3240*s3*s4*s5*s6**2 - 1125*s3*s5**3*s6 + 16*s4**6 - 1224*s4**3*s6**2 + 450*s4**2*s5**2*s6),
167
+ lambda s1, s2, s3, s4, s5, s6: (-3125*s1**6*s6**4 + 2500*s1**5*s2*s5*s6**3 + 625*s1**5*s3*s4*s6**3 - 500*s1**5*s3*s5**2*s6**2
168
+ + 2750*s1**5*s4**2*s5*s6**2 - 2400*s1**5*s4*s5**3*s6 + 512*s1**5*s5**5 - 750*s1**4*s2**2*s4*s6**3
169
+ - 550*s1**4*s2**2*s5**2*s6**2 - 375*s1**4*s2*s3**2*s6**3 - 3075*s1**4*s2*s3*s4*s5*s6**2
170
+ + 1640*s1**4*s2*s3*s5**3*s6 - 850*s1**4*s2*s4**3*s6**2 + 1220*s1**4*s2*s4**2*s5**2*s6
171
+ - 384*s1**4*s2*s4*s5**4 + 22500*s1**4*s2*s6**4 + 525*s1**4*s3**3*s5*s6**2 - 325*s1**4*s3**2*s4**2*s6**2
172
+ + 260*s1**4*s3**2*s4*s5**2*s6 - 256*s1**4*s3**2*s5**4 + 105*s1**4*s3*s4**3*s5*s6 +
173
+ 76*s1**4*s3*s4**2*s5**3 + 375*s1**4*s3*s5*s6**3 - 58*s1**4*s4**5*s6 + 3*s1**4*s4**4*s5**2
174
+ - 12750*s1**4*s4**2*s6**3 + 3700*s1**4*s4*s5**2*s6**2 + 640*s1**4*s5**4*s6 + 350*s1**3*s2**3*s3*s6**3
175
+ + 1090*s1**3*s2**3*s4*s5*s6**2 - 364*s1**3*s2**3*s5**3*s6 + 305*s1**3*s2**2*s3**2*s5*s6**2
176
+ + 1340*s1**3*s2**2*s3*s4**2*s6**2 - 901*s1**3*s2**2*s3*s4*s5**2*s6 + 76*s1**3*s2**2*s3*s5**4
177
+ - 234*s1**3*s2**2*s4**3*s5*s6 + 102*s1**3*s2**2*s4**2*s5**3 - 16650*s1**3*s2**2*s5*s6**3
178
+ + 180*s1**3*s2*s3**3*s4*s6**2 - 366*s1**3*s2*s3**3*s5**2*s6 - 231*s1**3*s2*s3**2*s4**2*s5*s6
179
+ + 212*s1**3*s2*s3**2*s4*s5**3 + 112*s1**3*s2*s3*s4**4*s6 - 89*s1**3*s2*s3*s4**3*s5**2
180
+ + 10950*s1**3*s2*s3*s4*s6**3 + 1555*s1**3*s2*s3*s5**2*s6**2 + 6*s1**3*s2*s4**5*s5
181
+ - 9540*s1**3*s2*s4**2*s5*s6**2 + 9016*s1**3*s2*s4*s5**3*s6 - 2400*s1**3*s2*s5**5 -
182
+ 108*s1**3*s3**5*s6**2 + 117*s1**3*s3**4*s4*s5*s6 + 32*s1**3*s3**4*s5**3 - 31*s1**3*s3**3*s4**3*s6
183
+ - 51*s1**3*s3**3*s4**2*s5**2 - 2025*s1**3*s3**3*s6**3 + 19*s1**3*s3**2*s4**4*s5 +
184
+ 2955*s1**3*s3**2*s4*s5*s6**2 - 1436*s1**3*s3**2*s5**3*s6 - 2*s1**3*s3*s4**6 + 2770*s1**3*s3*s4**3*s6**2
185
+ - 5123*s1**3*s3*s4**2*s5**2*s6 + 1640*s1**3*s3*s4*s5**4 - 40500*s1**3*s3*s6**4 + 914*s1**3*s4**4*s5*s6
186
+ - 364*s1**3*s4**3*s5**3 + 53550*s1**3*s4*s5*s6**3 - 17930*s1**3*s5**3*s6**2 - 56*s1**2*s2**5*s6**3
187
+ - 318*s1**2*s2**4*s3*s5*s6**2 - 352*s1**2*s2**4*s4**2*s6**2 + 166*s1**2*s2**4*s4*s5**2*s6
188
+ + 3*s1**2*s2**4*s5**4 - 574*s1**2*s2**3*s3**2*s4*s6**2 + 347*s1**2*s2**3*s3**2*s5**2*s6
189
+ + 194*s1**2*s2**3*s3*s4**2*s5*s6 - 89*s1**2*s2**3*s3*s4*s5**3 - 8*s1**2*s2**3*s4**4*s6
190
+ + 4*s1**2*s2**3*s4**3*s5**2 + 560*s1**2*s2**3*s4*s6**3 + 3662*s1**2*s2**3*s5**2*s6**2
191
+ + 162*s1**2*s2**2*s3**4*s6**2 + 33*s1**2*s2**2*s3**3*s4*s5*s6 - 51*s1**2*s2**2*s3**3*s5**3
192
+ - 32*s1**2*s2**2*s3**2*s4**3*s6 + 28*s1**2*s2**2*s3**2*s4**2*s5**2 + 270*s1**2*s2**2*s3**2*s6**3
193
+ - 2*s1**2*s2**2*s3*s4**4*s5 + 4872*s1**2*s2**2*s3*s4*s5*s6**2 - 5123*s1**2*s2**2*s3*s5**3*s6
194
+ + 2144*s1**2*s2**2*s4**3*s6**2 - 2812*s1**2*s2**2*s4**2*s5**2*s6 + 1220*s1**2*s2**2*s4*s5**4
195
+ - 37800*s1**2*s2**2*s6**4 - 27*s1**2*s2*s3**5*s5*s6 + 9*s1**2*s2*s3**4*s4**2*s6 +
196
+ 3*s1**2*s2*s3**4*s4*s5**2 - s1**2*s2*s3**3*s4**3*s5 - 3078*s1**2*s2*s3**3*s5*s6**2
197
+ - 4014*s1**2*s2*s3**2*s4**2*s6**2 + 5412*s1**2*s2*s3**2*s4*s5**2*s6 + 260*s1**2*s2*s3**2*s5**4
198
+ - 310*s1**2*s2*s3*s4**3*s5*s6 - 901*s1**2*s2*s3*s4**2*s5**3 - 3780*s1**2*s2*s3*s5*s6**3
199
+ + 166*s1**2*s2*s4**4*s5**2 + 40320*s1**2*s2*s4**2*s6**3 - 25344*s1**2*s2*s4*s5**2*s6**2
200
+ + 3700*s1**2*s2*s5**4*s6 + 918*s1**2*s3**4*s4*s6**2 + 27*s1**2*s3**4*s5**2*s6 - 342*s1**2*s3**3*s4**2*s5*s6
201
+ - 366*s1**2*s3**3*s4*s5**3 + 32*s1**2*s3**2*s4**4*s6 + 347*s1**2*s3**2*s4**3*s5**2
202
+ - 4590*s1**2*s3**2*s4*s6**3 + 594*s1**2*s3**2*s5**2*s6**2 - 94*s1**2*s3*s4**5*s5 +
203
+ 3618*s1**2*s3*s4**2*s5*s6**2 + 1555*s1**2*s3*s4*s5**3*s6 - 500*s1**2*s3*s5**5 + 8*s1**2*s4**7
204
+ - 7192*s1**2*s4**4*s6**2 + 3662*s1**2*s4**3*s5**2*s6 - 550*s1**2*s4**2*s5**4 - 48600*s1**2*s4*s6**4
205
+ + 1080*s1**2*s5**2*s6**3 + 48*s1*s2**6*s5*s6**2 + 264*s1*s2**5*s3*s4*s6**2 - 94*s1*s2**5*s3*s5**2*s6
206
+ - 24*s1*s2**5*s4**2*s5*s6 + 6*s1*s2**5*s4*s5**3 - 66*s1*s2**4*s3**3*s6**2 - 50*s1*s2**4*s3**2*s4*s5*s6
207
+ + 19*s1*s2**4*s3**2*s5**3 + 8*s1*s2**4*s3*s4**3*s6 - 2*s1*s2**4*s3*s4**2*s5**2 - 552*s1*s2**4*s3*s6**3
208
+ - 2560*s1*s2**4*s4*s5*s6**2 + 914*s1*s2**4*s5**3*s6 + 15*s1*s2**3*s3**4*s5*s6 - 2*s1*s2**3*s3**3*s4**2*s6
209
+ - s1*s2**3*s3**3*s4*s5**2 + 1602*s1*s2**3*s3**2*s5*s6**2 - 608*s1*s2**3*s3*s4**2*s6**2
210
+ - 310*s1*s2**3*s3*s4*s5**2*s6 + 105*s1*s2**3*s3*s5**4 + 600*s1*s2**3*s4**3*s5*s6 -
211
+ 234*s1*s2**3*s4**2*s5**3 + 31368*s1*s2**3*s5*s6**3 + 756*s1*s2**2*s3**3*s4*s6**2 -
212
+ 342*s1*s2**2*s3**3*s5**2*s6 + 216*s1*s2**2*s3**2*s4**2*s5*s6 - 231*s1*s2**2*s3**2*s4*s5**3
213
+ - 192*s1*s2**2*s3*s4**4*s6 + 194*s1*s2**2*s3*s4**3*s5**2 - 39096*s1*s2**2*s3*s4*s6**3
214
+ + 3618*s1*s2**2*s3*s5**2*s6**2 - 24*s1*s2**2*s4**5*s5 + 9408*s1*s2**2*s4**2*s5*s6**2
215
+ - 9540*s1*s2**2*s4*s5**3*s6 + 2750*s1*s2**2*s5**5 - 162*s1*s2*s3**5*s6**2 - 378*s1*s2*s3**4*s4*s5*s6
216
+ + 117*s1*s2*s3**4*s5**3 + 150*s1*s2*s3**3*s4**3*s6 + 33*s1*s2*s3**3*s4**2*s5**2 +
217
+ 10044*s1*s2*s3**3*s6**3 - 50*s1*s2*s3**2*s4**4*s5 - 8640*s1*s2*s3**2*s4*s5*s6**2 +
218
+ 2955*s1*s2*s3**2*s5**3*s6 + 8*s1*s2*s3*s4**6 + 6144*s1*s2*s3*s4**3*s6**2 + 4872*s1*s2*s3*s4**2*s5**2*s6
219
+ - 3075*s1*s2*s3*s4*s5**4 + 174960*s1*s2*s3*s6**4 - 2560*s1*s2*s4**4*s5*s6 + 1090*s1*s2*s4**3*s5**3
220
+ - 148824*s1*s2*s4*s5*s6**3 + 53550*s1*s2*s5**3*s6**2 + 81*s1*s3**6*s5*s6 - 27*s1*s3**5*s4**2*s6
221
+ - 27*s1*s3**5*s4*s5**2 + 15*s1*s3**4*s4**3*s5 + 2430*s1*s3**4*s5*s6**2 - 2*s1*s3**3*s4**5
222
+ - 2052*s1*s3**3*s4**2*s6**2 - 3078*s1*s3**3*s4*s5**2*s6 + 525*s1*s3**3*s5**4 + 1602*s1*s3**2*s4**3*s5*s6
223
+ + 305*s1*s3**2*s4**2*s5**3 + 18144*s1*s3**2*s5*s6**3 - 104*s1*s3*s4**5*s6 - 318*s1*s3*s4**4*s5**2
224
+ - 33696*s1*s3*s4**2*s6**3 - 3780*s1*s3*s4*s5**2*s6**2 + 375*s1*s3*s5**4*s6 + 48*s1*s4**6*s5
225
+ + 31368*s1*s4**3*s5*s6**2 - 16650*s1*s4**2*s5**3*s6 + 2500*s1*s4*s5**5 + 77760*s1*s5*s6**4
226
+ - 32*s2**7*s4*s6**2 + 8*s2**7*s5**2*s6 + 8*s2**6*s3**2*s6**2 + 8*s2**6*s3*s4*s5*s6
227
+ - 2*s2**6*s3*s5**3 + 96*s2**6*s6**3 - 2*s2**5*s3**3*s5*s6 - 104*s2**5*s3*s5*s6**2
228
+ + 416*s2**5*s4**2*s6**2 - 58*s2**5*s5**4 - 312*s2**4*s3**2*s4*s6**2 + 32*s2**4*s3**2*s5**2*s6
229
+ - 192*s2**4*s3*s4**2*s5*s6 + 112*s2**4*s3*s4*s5**3 - 8*s2**4*s4**3*s5**2 + 4224*s2**4*s4*s6**3
230
+ - 7192*s2**4*s5**2*s6**2 + 54*s2**3*s3**4*s6**2 + 150*s2**3*s3**3*s4*s5*s6 - 31*s2**3*s3**3*s5**3
231
+ - 32*s2**3*s3**2*s4**2*s5**2 - 864*s2**3*s3**2*s6**3 + 8*s2**3*s3*s4**4*s5 + 6144*s2**3*s3*s4*s5*s6**2
232
+ + 2770*s2**3*s3*s5**3*s6 - 4032*s2**3*s4**3*s6**2 + 2144*s2**3*s4**2*s5**2*s6 - 850*s2**3*s4*s5**4
233
+ - 16416*s2**3*s6**4 - 27*s2**2*s3**5*s5*s6 + 9*s2**2*s3**4*s4*s5**2 - 2*s2**2*s3**3*s4**3*s5
234
+ - 2052*s2**2*s3**3*s5*s6**2 + 2376*s2**2*s3**2*s4**2*s6**2 - 4014*s2**2*s3**2*s4*s5**2*s6
235
+ - 325*s2**2*s3**2*s5**4 - 608*s2**2*s3*s4**3*s5*s6 + 1340*s2**2*s3*s4**2*s5**3 - 33696*s2**2*s3*s5*s6**3
236
+ + 416*s2**2*s4**5*s6 - 352*s2**2*s4**4*s5**2 - 6048*s2**2*s4**2*s6**3 + 40320*s2**2*s4*s5**2*s6**2
237
+ - 12750*s2**2*s5**4*s6 - 324*s2*s3**4*s4*s6**2 + 918*s2*s3**4*s5**2*s6 + 756*s2*s3**3*s4**2*s5*s6
238
+ + 180*s2*s3**3*s4*s5**3 - 312*s2*s3**2*s4**4*s6 - 574*s2*s3**2*s4**3*s5**2 + 43416*s2*s3**2*s4*s6**3
239
+ - 4590*s2*s3**2*s5**2*s6**2 + 264*s2*s3*s4**5*s5 - 39096*s2*s3*s4**2*s5*s6**2 + 10950*s2*s3*s4*s5**3*s6
240
+ + 625*s2*s3*s5**5 - 32*s2*s4**7 + 4224*s2*s4**4*s6**2 + 560*s2*s4**3*s5**2*s6 - 750*s2*s4**2*s5**4
241
+ + 85536*s2*s4*s6**4 - 48600*s2*s5**2*s6**3 - 162*s3**5*s4*s5*s6 - 108*s3**5*s5**3
242
+ + 54*s3**4*s4**3*s6 + 162*s3**4*s4**2*s5**2 - 11664*s3**4*s6**3 - 66*s3**3*s4**4*s5
243
+ + 10044*s3**3*s4*s5*s6**2 - 2025*s3**3*s5**3*s6 + 8*s3**2*s4**6 - 864*s3**2*s4**3*s6**2
244
+ + 270*s3**2*s4**2*s5**2*s6 - 375*s3**2*s4*s5**4 - 163296*s3**2*s6**4 - 552*s3*s4**4*s5*s6
245
+ + 350*s3*s4**3*s5**3 + 174960*s3*s4*s5*s6**3 - 40500*s3*s5**3*s6**2 + 96*s4**6*s6
246
+ - 56*s4**5*s5**2 - 16416*s4**3*s6**3 - 37800*s4**2*s5**2*s6**2 + 22500*s4*s5**4*s6
247
+ - 3125*s5**6 - 93312*s6**5),
248
+ lambda s1, s2, s3, s4, s5, s6: (-9375*s1**7*s5*s6**4 + 3125*s1**6*s2*s4*s6**4 + 7500*s1**6*s2*s5**2*s6**3 + 3125*s1**6*s3**2*s6**4
249
+ - 1250*s1**6*s3*s4*s5*s6**3 - 2000*s1**6*s3*s5**3*s6**2 + 3250*s1**6*s4**2*s5**2*s6**2
250
+ - 1600*s1**6*s4*s5**4*s6 + 256*s1**6*s5**6 + 40625*s1**6*s6**5 - 3125*s1**5*s2**2*s3*s6**4
251
+ - 3500*s1**5*s2**2*s4*s5*s6**3 - 1450*s1**5*s2**2*s5**3*s6**2 - 1750*s1**5*s2*s3**2*s5*s6**3
252
+ + 625*s1**5*s2*s3*s4**2*s6**3 - 850*s1**5*s2*s3*s4*s5**2*s6**2 + 1760*s1**5*s2*s3*s5**4*s6
253
+ - 2050*s1**5*s2*s4**3*s5*s6**2 + 780*s1**5*s2*s4**2*s5**3*s6 - 192*s1**5*s2*s4*s5**5
254
+ + 35000*s1**5*s2*s5*s6**4 + 1200*s1**5*s3**3*s5**2*s6**2 - 725*s1**5*s3**2*s4**2*s5*s6**2
255
+ - 160*s1**5*s3**2*s4*s5**3*s6 - 192*s1**5*s3**2*s5**5 - 125*s1**5*s3*s4**4*s6**2 +
256
+ 590*s1**5*s3*s4**3*s5**2*s6 - 16*s1**5*s3*s4**2*s5**4 - 20625*s1**5*s3*s4*s6**4 +
257
+ 17250*s1**5*s3*s5**2*s6**3 - 124*s1**5*s4**5*s5*s6 + 17*s1**5*s4**4*s5**3 - 20250*s1**5*s4**2*s5*s6**3
258
+ + 1900*s1**5*s4*s5**3*s6**2 + 1344*s1**5*s5**5*s6 + 625*s1**4*s2**4*s6**4 + 2300*s1**4*s2**3*s3*s5*s6**3
259
+ + 250*s1**4*s2**3*s4**2*s6**3 + 1470*s1**4*s2**3*s4*s5**2*s6**2 - 276*s1**4*s2**3*s5**4*s6
260
+ - 125*s1**4*s2**2*s3**2*s4*s6**3 - 610*s1**4*s2**2*s3**2*s5**2*s6**2 + 1995*s1**4*s2**2*s3*s4**2*s5*s6**2
261
+ - 1174*s1**4*s2**2*s3*s4*s5**3*s6 - 16*s1**4*s2**2*s3*s5**5 + 375*s1**4*s2**2*s4**4*s6**2
262
+ - 172*s1**4*s2**2*s4**3*s5**2*s6 + 82*s1**4*s2**2*s4**2*s5**4 - 7750*s1**4*s2**2*s4*s6**4
263
+ - 46650*s1**4*s2**2*s5**2*s6**3 + 15*s1**4*s2*s3**3*s4*s5*s6**2 - 384*s1**4*s2*s3**3*s5**3*s6
264
+ + 525*s1**4*s2*s3**2*s4**3*s6**2 - 528*s1**4*s2*s3**2*s4**2*s5**2*s6 + 384*s1**4*s2*s3**2*s4*s5**4
265
+ - 10125*s1**4*s2*s3**2*s6**4 - 29*s1**4*s2*s3*s4**4*s5*s6 - 118*s1**4*s2*s3*s4**3*s5**3
266
+ + 36700*s1**4*s2*s3*s4*s5*s6**3 + 2410*s1**4*s2*s3*s5**3*s6**2 + 38*s1**4*s2*s4**6*s6
267
+ + 5*s1**4*s2*s4**5*s5**2 + 5550*s1**4*s2*s4**3*s6**3 - 10040*s1**4*s2*s4**2*s5**2*s6**2
268
+ + 5800*s1**4*s2*s4*s5**4*s6 - 1600*s1**4*s2*s5**6 - 292500*s1**4*s2*s6**5 - 99*s1**4*s3**5*s5*s6**2
269
+ - 150*s1**4*s3**4*s4**2*s6**2 + 196*s1**4*s3**4*s4*s5**2*s6 + 48*s1**4*s3**4*s5**4
270
+ + 12*s1**4*s3**3*s4**3*s5*s6 - 128*s1**4*s3**3*s4**2*s5**3 - 6525*s1**4*s3**3*s5*s6**3
271
+ - 12*s1**4*s3**2*s4**5*s6 + 65*s1**4*s3**2*s4**4*s5**2 + 225*s1**4*s3**2*s4**2*s6**3
272
+ + 80*s1**4*s3**2*s4*s5**2*s6**2 - 13*s1**4*s3*s4**6*s5 + 5145*s1**4*s3*s4**3*s5*s6**2
273
+ - 6746*s1**4*s3*s4**2*s5**3*s6 + 1760*s1**4*s3*s4*s5**5 - 103500*s1**4*s3*s5*s6**4
274
+ + s1**4*s4**8 + 954*s1**4*s4**5*s6**2 + 449*s1**4*s4**4*s5**2*s6 - 276*s1**4*s4**3*s5**4
275
+ + 70125*s1**4*s4**2*s6**4 + 58900*s1**4*s4*s5**2*s6**3 - 23310*s1**4*s5**4*s6**2 -
276
+ 468*s1**3*s2**5*s5*s6**3 - 200*s1**3*s2**4*s3*s4*s6**3 - 294*s1**3*s2**4*s3*s5**2*s6**2
277
+ - 676*s1**3*s2**4*s4**2*s5*s6**2 + 180*s1**3*s2**4*s4*s5**3*s6 + 17*s1**3*s2**4*s5**5
278
+ + 50*s1**3*s2**3*s3**3*s6**3 - 397*s1**3*s2**3*s3**2*s4*s5*s6**2 + 514*s1**3*s2**3*s3**2*s5**3*s6
279
+ - 700*s1**3*s2**3*s3*s4**3*s6**2 + 447*s1**3*s2**3*s3*s4**2*s5**2*s6 - 118*s1**3*s2**3*s3*s4*s5**4
280
+ + 11700*s1**3*s2**3*s3*s6**4 - 12*s1**3*s2**3*s4**4*s5*s6 + 6*s1**3*s2**3*s4**3*s5**3
281
+ + 10360*s1**3*s2**3*s4*s5*s6**3 + 11404*s1**3*s2**3*s5**3*s6**2 + 141*s1**3*s2**2*s3**4*s5*s6**2
282
+ - 185*s1**3*s2**2*s3**3*s4**2*s6**2 + 168*s1**3*s2**2*s3**3*s4*s5**2*s6 - 128*s1**3*s2**2*s3**3*s5**4
283
+ + 93*s1**3*s2**2*s3**2*s4**3*s5*s6 + 19*s1**3*s2**2*s3**2*s4**2*s5**3 + 5895*s1**3*s2**2*s3**2*s5*s6**3
284
+ - 36*s1**3*s2**2*s3*s4**5*s6 + 5*s1**3*s2**2*s3*s4**4*s5**2 - 12020*s1**3*s2**2*s3*s4**2*s6**3
285
+ - 5698*s1**3*s2**2*s3*s4*s5**2*s6**2 - 6746*s1**3*s2**2*s3*s5**4*s6 + 5064*s1**3*s2**2*s4**3*s5*s6**2
286
+ - 762*s1**3*s2**2*s4**2*s5**3*s6 + 780*s1**3*s2**2*s4*s5**5 + 93900*s1**3*s2**2*s5*s6**4
287
+ + 198*s1**3*s2*s3**5*s4*s6**2 - 78*s1**3*s2*s3**5*s5**2*s6 - 95*s1**3*s2*s3**4*s4**2*s5*s6
288
+ + 44*s1**3*s2*s3**4*s4*s5**3 + 25*s1**3*s2*s3**3*s4**4*s6 - 15*s1**3*s2*s3**3*s4**3*s5**2
289
+ + 1935*s1**3*s2*s3**3*s4*s6**3 - 2808*s1**3*s2*s3**3*s5**2*s6**2 + s1**3*s2*s3**2*s4**5*s5
290
+ - 4844*s1**3*s2*s3**2*s4**2*s5*s6**2 + 8996*s1**3*s2*s3**2*s4*s5**3*s6 - 160*s1**3*s2*s3**2*s5**5
291
+ - 3616*s1**3*s2*s3*s4**4*s6**2 + 500*s1**3*s2*s3*s4**3*s5**2*s6 - 1174*s1**3*s2*s3*s4**2*s5**4
292
+ + 72900*s1**3*s2*s3*s4*s6**4 - 55665*s1**3*s2*s3*s5**2*s6**3 + 128*s1**3*s2*s4**5*s5*s6
293
+ + 180*s1**3*s2*s4**4*s5**3 + 16240*s1**3*s2*s4**2*s5*s6**3 - 9330*s1**3*s2*s4*s5**3*s6**2
294
+ + 1900*s1**3*s2*s5**5*s6 - 27*s1**3*s3**7*s6**2 + 18*s1**3*s3**6*s4*s5*s6 - 4*s1**3*s3**6*s5**3
295
+ - 4*s1**3*s3**5*s4**3*s6 + s1**3*s3**5*s4**2*s5**2 + 54*s1**3*s3**5*s6**3 + 1143*s1**3*s3**4*s4*s5*s6**2
296
+ - 820*s1**3*s3**4*s5**3*s6 + 923*s1**3*s3**3*s4**3*s6**2 + 57*s1**3*s3**3*s4**2*s5**2*s6
297
+ - 384*s1**3*s3**3*s4*s5**4 + 29700*s1**3*s3**3*s6**4 - 547*s1**3*s3**2*s4**4*s5*s6
298
+ + 514*s1**3*s3**2*s4**3*s5**3 - 10305*s1**3*s3**2*s4*s5*s6**3 - 7405*s1**3*s3**2*s5**3*s6**2
299
+ + 108*s1**3*s3*s4**6*s6 - 148*s1**3*s3*s4**5*s5**2 - 11360*s1**3*s3*s4**3*s6**3 +
300
+ 22209*s1**3*s3*s4**2*s5**2*s6**2 + 2410*s1**3*s3*s4*s5**4*s6 - 2000*s1**3*s3*s5**6
301
+ + 432000*s1**3*s3*s6**5 + 12*s1**3*s4**7*s5 - 22624*s1**3*s4**4*s5*s6**2 + 11404*s1**3*s4**3*s5**3*s6
302
+ - 1450*s1**3*s4**2*s5**5 - 242100*s1**3*s4*s5*s6**4 + 58430*s1**3*s5**3*s6**3 + 56*s1**2*s2**6*s4*s6**3
303
+ + 86*s1**2*s2**6*s5**2*s6**2 - 14*s1**2*s2**5*s3**2*s6**3 + 304*s1**2*s2**5*s3*s4*s5*s6**2
304
+ - 148*s1**2*s2**5*s3*s5**3*s6 + 152*s1**2*s2**5*s4**3*s6**2 - 54*s1**2*s2**5*s4**2*s5**2*s6
305
+ + 5*s1**2*s2**5*s4*s5**4 - 2472*s1**2*s2**5*s6**4 - 76*s1**2*s2**4*s3**3*s5*s6**2
306
+ + 370*s1**2*s2**4*s3**2*s4**2*s6**2 - 287*s1**2*s2**4*s3**2*s4*s5**2*s6 + 65*s1**2*s2**4*s3**2*s5**4
307
+ - 28*s1**2*s2**4*s3*s4**3*s5*s6 + 5*s1**2*s2**4*s3*s4**2*s5**3 - 8092*s1**2*s2**4*s3*s5*s6**3
308
+ + 8*s1**2*s2**4*s4**5*s6 - 2*s1**2*s2**4*s4**4*s5**2 + 1096*s1**2*s2**4*s4**2*s6**3
309
+ - 5144*s1**2*s2**4*s4*s5**2*s6**2 + 449*s1**2*s2**4*s5**4*s6 - 210*s1**2*s2**3*s3**4*s4*s6**2
310
+ + 76*s1**2*s2**3*s3**4*s5**2*s6 + 43*s1**2*s2**3*s3**3*s4**2*s5*s6 - 15*s1**2*s2**3*s3**3*s4*s5**3
311
+ - 6*s1**2*s2**3*s3**2*s4**4*s6 + 2*s1**2*s2**3*s3**2*s4**3*s5**2 + 1962*s1**2*s2**3*s3**2*s4*s6**3
312
+ + 3181*s1**2*s2**3*s3**2*s5**2*s6**2 + 1684*s1**2*s2**3*s3*s4**2*s5*s6**2 + 500*s1**2*s2**3*s3*s4*s5**3*s6
313
+ + 590*s1**2*s2**3*s3*s5**5 - 168*s1**2*s2**3*s4**4*s6**2 - 494*s1**2*s2**3*s4**3*s5**2*s6
314
+ - 172*s1**2*s2**3*s4**2*s5**4 - 22080*s1**2*s2**3*s4*s6**4 + 58894*s1**2*s2**3*s5**2*s6**3
315
+ + 27*s1**2*s2**2*s3**6*s6**2 - 9*s1**2*s2**2*s3**5*s4*s5*s6 + s1**2*s2**2*s3**5*s5**3
316
+ + s1**2*s2**2*s3**4*s4**3*s6 - 486*s1**2*s2**2*s3**4*s6**3 + 1071*s1**2*s2**2*s3**3*s4*s5*s6**2
317
+ + 57*s1**2*s2**2*s3**3*s5**3*s6 + 2262*s1**2*s2**2*s3**2*s4**3*s6**2 - 2742*s1**2*s2**2*s3**2*s4**2*s5**2*s6
318
+ - 528*s1**2*s2**2*s3**2*s4*s5**4 - 29160*s1**2*s2**2*s3**2*s6**4 + 772*s1**2*s2**2*s3*s4**4*s5*s6
319
+ + 447*s1**2*s2**2*s3*s4**3*s5**3 - 96732*s1**2*s2**2*s3*s4*s5*s6**3 + 22209*s1**2*s2**2*s3*s5**3*s6**2
320
+ - 160*s1**2*s2**2*s4**6*s6 - 54*s1**2*s2**2*s4**5*s5**2 - 7992*s1**2*s2**2*s4**3*s6**3
321
+ + 8634*s1**2*s2**2*s4**2*s5**2*s6**2 - 10040*s1**2*s2**2*s4*s5**4*s6 + 3250*s1**2*s2**2*s5**6
322
+ + 529200*s1**2*s2**2*s6**5 - 351*s1**2*s2*s3**5*s5*s6**2 - 1215*s1**2*s2*s3**4*s4**2*s6**2
323
+ - 360*s1**2*s2*s3**4*s4*s5**2*s6 + 196*s1**2*s2*s3**4*s5**4 + 741*s1**2*s2*s3**3*s4**3*s5*s6
324
+ + 168*s1**2*s2*s3**3*s4**2*s5**3 + 11718*s1**2*s2*s3**3*s5*s6**3 - 106*s1**2*s2*s3**2*s4**5*s6
325
+ - 287*s1**2*s2*s3**2*s4**4*s5**2 + 22572*s1**2*s2*s3**2*s4**2*s6**3 - 8892*s1**2*s2*s3**2*s4*s5**2*s6**2
326
+ + 80*s1**2*s2*s3**2*s5**4*s6 + 88*s1**2*s2*s3*s4**6*s5 + 22144*s1**2*s2*s3*s4**3*s5*s6**2
327
+ - 5698*s1**2*s2*s3*s4**2*s5**3*s6 - 850*s1**2*s2*s3*s4*s5**5 + 169560*s1**2*s2*s3*s5*s6**4
328
+ - 8*s1**2*s2*s4**8 + 3032*s1**2*s2*s4**5*s6**2 - 5144*s1**2*s2*s4**4*s5**2*s6 + 1470*s1**2*s2*s4**3*s5**4
329
+ - 249480*s1**2*s2*s4**2*s6**4 - 105390*s1**2*s2*s4*s5**2*s6**3 + 58900*s1**2*s2*s5**4*s6**2
330
+ + 162*s1**2*s3**6*s4*s6**2 + 216*s1**2*s3**6*s5**2*s6 - 216*s1**2*s3**5*s4**2*s5*s6
331
+ - 78*s1**2*s3**5*s4*s5**3 + 36*s1**2*s3**4*s4**4*s6 + 76*s1**2*s3**4*s4**3*s5**2 -
332
+ 3564*s1**2*s3**4*s4*s6**3 + 8802*s1**2*s3**4*s5**2*s6**2 - 22*s1**2*s3**3*s4**5*s5
333
+ - 11475*s1**2*s3**3*s4**2*s5*s6**2 - 2808*s1**2*s3**3*s4*s5**3*s6 + 1200*s1**2*s3**3*s5**5
334
+ + 2*s1**2*s3**2*s4**7 + 222*s1**2*s3**2*s4**4*s6**2 + 3181*s1**2*s3**2*s4**3*s5**2*s6
335
+ - 610*s1**2*s3**2*s4**2*s5**4 - 165240*s1**2*s3**2*s4*s6**4 + 118260*s1**2*s3**2*s5**2*s6**3
336
+ + 572*s1**2*s3*s4**5*s5*s6 - 294*s1**2*s3*s4**4*s5**3 - 32616*s1**2*s3*s4**2*s5*s6**3
337
+ - 55665*s1**2*s3*s4*s5**3*s6**2 + 17250*s1**2*s3*s5**5*s6 - 232*s1**2*s4**7*s6 + 86*s1**2*s4**6*s5**2
338
+ + 48408*s1**2*s4**4*s6**3 + 58894*s1**2*s4**3*s5**2*s6**2 - 46650*s1**2*s4**2*s5**4*s6
339
+ + 7500*s1**2*s4*s5**6 - 129600*s1**2*s4*s6**5 + 41040*s1**2*s5**2*s6**4 - 48*s1*s2**7*s4*s5*s6**2
340
+ + 12*s1*s2**7*s5**3*s6 + 12*s1*s2**6*s3**2*s5*s6**2 - 144*s1*s2**6*s3*s4**2*s6**2
341
+ + 88*s1*s2**6*s3*s4*s5**2*s6 - 13*s1*s2**6*s3*s5**4 + 1680*s1*s2**6*s5*s6**3 + 72*s1*s2**5*s3**3*s4*s6**2
342
+ - 22*s1*s2**5*s3**3*s5**2*s6 - 4*s1*s2**5*s3**2*s4**2*s5*s6 + s1*s2**5*s3**2*s4*s5**3
343
+ - 144*s1*s2**5*s3*s4*s6**3 + 572*s1*s2**5*s3*s5**2*s6**2 + 736*s1*s2**5*s4**2*s5*s6**2
344
+ + 128*s1*s2**5*s4*s5**3*s6 - 124*s1*s2**5*s5**5 - 9*s1*s2**4*s3**5*s6**2 + s1*s2**4*s3**4*s4*s5*s6
345
+ + 36*s1*s2**4*s3**3*s6**3 - 2028*s1*s2**4*s3**2*s4*s5*s6**2 - 547*s1*s2**4*s3**2*s5**3*s6
346
+ - 480*s1*s2**4*s3*s4**3*s6**2 + 772*s1*s2**4*s3*s4**2*s5**2*s6 - 29*s1*s2**4*s3*s4*s5**4
347
+ + 6336*s1*s2**4*s3*s6**4 - 12*s1*s2**4*s4**3*s5**3 + 4368*s1*s2**4*s4*s5*s6**3 - 22624*s1*s2**4*s5**3*s6**2
348
+ + 441*s1*s2**3*s3**4*s5*s6**2 + 336*s1*s2**3*s3**3*s4**2*s6**2 + 741*s1*s2**3*s3**3*s4*s5**2*s6
349
+ + 12*s1*s2**3*s3**3*s5**4 - 868*s1*s2**3*s3**2*s4**3*s5*s6 + 93*s1*s2**3*s3**2*s4**2*s5**3
350
+ + 11016*s1*s2**3*s3**2*s5*s6**3 + 176*s1*s2**3*s3*s4**5*s6 - 28*s1*s2**3*s3*s4**4*s5**2
351
+ + 14784*s1*s2**3*s3*s4**2*s6**3 + 22144*s1*s2**3*s3*s4*s5**2*s6**2 + 5145*s1*s2**3*s3*s5**4*s6
352
+ - 11344*s1*s2**3*s4**3*s5*s6**2 + 5064*s1*s2**3*s4**2*s5**3*s6 - 2050*s1*s2**3*s4*s5**5
353
+ - 346896*s1*s2**3*s5*s6**4 - 54*s1*s2**2*s3**5*s4*s6**2 - 216*s1*s2**2*s3**5*s5**2*s6
354
+ + 324*s1*s2**2*s3**4*s4**2*s5*s6 - 95*s1*s2**2*s3**4*s4*s5**3 - 80*s1*s2**2*s3**3*s4**4*s6
355
+ + 43*s1*s2**2*s3**3*s4**3*s5**2 - 12204*s1*s2**2*s3**3*s4*s6**3 - 11475*s1*s2**2*s3**3*s5**2*s6**2
356
+ - 4*s1*s2**2*s3**2*s4**5*s5 - 3888*s1*s2**2*s3**2*s4**2*s5*s6**2 - 4844*s1*s2**2*s3**2*s4*s5**3*s6
357
+ - 725*s1*s2**2*s3**2*s5**5 - 1312*s1*s2**2*s3*s4**4*s6**2 + 1684*s1*s2**2*s3*s4**3*s5**2*s6
358
+ + 1995*s1*s2**2*s3*s4**2*s5**4 + 139104*s1*s2**2*s3*s4*s6**4 - 32616*s1*s2**2*s3*s5**2*s6**3
359
+ + 736*s1*s2**2*s4**5*s5*s6 - 676*s1*s2**2*s4**4*s5**3 + 131040*s1*s2**2*s4**2*s5*s6**3
360
+ + 16240*s1*s2**2*s4*s5**3*s6**2 - 20250*s1*s2**2*s5**5*s6 - 27*s1*s2*s3**6*s4*s5*s6
361
+ + 18*s1*s2*s3**6*s5**3 + 9*s1*s2*s3**5*s4**3*s6 - 9*s1*s2*s3**5*s4**2*s5**2 + 1944*s1*s2*s3**5*s6**3
362
+ + s1*s2*s3**4*s4**4*s5 + 6156*s1*s2*s3**4*s4*s5*s6**2 + 1143*s1*s2*s3**4*s5**3*s6
363
+ + 324*s1*s2*s3**3*s4**3*s6**2 + 1071*s1*s2*s3**3*s4**2*s5**2*s6 + 15*s1*s2*s3**3*s4*s5**4
364
+ - 7776*s1*s2*s3**3*s6**4 - 2028*s1*s2*s3**2*s4**4*s5*s6 - 397*s1*s2*s3**2*s4**3*s5**3
365
+ + 112860*s1*s2*s3**2*s4*s5*s6**3 - 10305*s1*s2*s3**2*s5**3*s6**2 + 336*s1*s2*s3*s4**6*s6
366
+ + 304*s1*s2*s3*s4**5*s5**2 - 68976*s1*s2*s3*s4**3*s6**3 - 96732*s1*s2*s3*s4**2*s5**2*s6**2
367
+ + 36700*s1*s2*s3*s4*s5**4*s6 - 1250*s1*s2*s3*s5**6 - 1477440*s1*s2*s3*s6**5 - 48*s1*s2*s4**7*s5
368
+ + 4368*s1*s2*s4**4*s5*s6**2 + 10360*s1*s2*s4**3*s5**3*s6 - 3500*s1*s2*s4**2*s5**5
369
+ + 935280*s1*s2*s4*s5*s6**4 - 242100*s1*s2*s5**3*s6**3 - 972*s1*s3**6*s5*s6**2 - 351*s1*s3**5*s4*s5**2*s6
370
+ - 99*s1*s3**5*s5**4 + 441*s1*s3**4*s4**3*s5*s6 + 141*s1*s3**4*s4**2*s5**3 - 36936*s1*s3**4*s5*s6**3
371
+ - 84*s1*s3**3*s4**5*s6 - 76*s1*s3**3*s4**4*s5**2 + 17496*s1*s3**3*s4**2*s6**3 + 11718*s1*s3**3*s4*s5**2*s6**2
372
+ - 6525*s1*s3**3*s5**4*s6 + 12*s1*s3**2*s4**6*s5 + 11016*s1*s3**2*s4**3*s5*s6**2 +
373
+ 5895*s1*s3**2*s4**2*s5**3*s6 - 1750*s1*s3**2*s4*s5**5 - 252720*s1*s3**2*s5*s6**4 -
374
+ 2544*s1*s3*s4**5*s6**2 - 8092*s1*s3*s4**4*s5**2*s6 + 2300*s1*s3*s4**3*s5**4 + 536544*s1*s3*s4**2*s6**4
375
+ + 169560*s1*s3*s4*s5**2*s6**3 - 103500*s1*s3*s5**4*s6**2 + 1680*s1*s4**6*s5*s6 - 468*s1*s4**5*s5**3
376
+ - 346896*s1*s4**3*s5*s6**3 + 93900*s1*s4**2*s5**3*s6**2 + 35000*s1*s4*s5**5*s6 - 9375*s1*s5**7
377
+ + 108864*s1*s5*s6**5 + 16*s2**8*s4**2*s6**2 - 8*s2**8*s4*s5**2*s6 + s2**8*s5**4 -
378
+ 8*s2**7*s3**2*s4*s6**2 + 2*s2**7*s3**2*s5**2*s6 - 96*s2**7*s4*s6**3 - 232*s2**7*s5**2*s6**2
379
+ + s2**6*s3**4*s6**2 + 24*s2**6*s3**2*s6**3 + 336*s2**6*s3*s4*s5*s6**2 + 108*s2**6*s3*s5**3*s6
380
+ - 32*s2**6*s4**3*s6**2 - 160*s2**6*s4**2*s5**2*s6 + 38*s2**6*s4*s5**4 + 144*s2**6*s6**4
381
+ - 84*s2**5*s3**3*s5*s6**2 + 8*s2**5*s3**2*s4**2*s6**2 - 106*s2**5*s3**2*s4*s5**2*s6
382
+ - 12*s2**5*s3**2*s5**4 + 176*s2**5*s3*s4**3*s5*s6 - 36*s2**5*s3*s4**2*s5**3 - 2544*s2**5*s3*s5*s6**3
383
+ - 32*s2**5*s4**5*s6 + 8*s2**5*s4**4*s5**2 - 3072*s2**5*s4**2*s6**3 + 3032*s2**5*s4*s5**2*s6**2
384
+ + 954*s2**5*s5**4*s6 + 36*s2**4*s3**4*s5**2*s6 - 80*s2**4*s3**3*s4**2*s5*s6 + 25*s2**4*s3**3*s4*s5**3
385
+ + 16*s2**4*s3**2*s4**4*s6 - 6*s2**4*s3**2*s4**3*s5**2 + 2520*s2**4*s3**2*s4*s6**3
386
+ + 222*s2**4*s3**2*s5**2*s6**2 - 1312*s2**4*s3*s4**2*s5*s6**2 - 3616*s2**4*s3*s4*s5**3*s6
387
+ - 125*s2**4*s3*s5**5 + 1296*s2**4*s4**4*s6**2 - 168*s2**4*s4**3*s5**2*s6 + 375*s2**4*s4**2*s5**4
388
+ + 19296*s2**4*s4*s6**4 + 48408*s2**4*s5**2*s6**3 + 9*s2**3*s3**5*s4*s5*s6 - 4*s2**3*s3**5*s5**3
389
+ - 2*s2**3*s3**4*s4**3*s6 + s2**3*s3**4*s4**2*s5**2 - 432*s2**3*s3**4*s6**3 + 324*s2**3*s3**3*s4*s5*s6**2
390
+ + 923*s2**3*s3**3*s5**3*s6 - 752*s2**3*s3**2*s4**3*s6**2 + 2262*s2**3*s3**2*s4**2*s5**2*s6
391
+ + 525*s2**3*s3**2*s4*s5**4 - 9936*s2**3*s3**2*s6**4 - 480*s2**3*s3*s4**4*s5*s6 - 700*s2**3*s3*s4**3*s5**3
392
+ - 68976*s2**3*s3*s4*s5*s6**3 - 11360*s2**3*s3*s5**3*s6**2 - 32*s2**3*s4**6*s6 + 152*s2**3*s4**5*s5**2
393
+ + 6912*s2**3*s4**3*s6**3 - 7992*s2**3*s4**2*s5**2*s6**2 + 5550*s2**3*s4*s5**4*s6 -
394
+ 29376*s2**3*s6**5 + 108*s2**2*s3**4*s4**2*s6**2 - 1215*s2**2*s3**4*s4*s5**2*s6 - 150*s2**2*s3**4*s5**4
395
+ + 336*s2**2*s3**3*s4**3*s5*s6 - 185*s2**2*s3**3*s4**2*s5**3 + 17496*s2**2*s3**3*s5*s6**3
396
+ + 8*s2**2*s3**2*s4**5*s6 + 370*s2**2*s3**2*s4**4*s5**2 - 864*s2**2*s3**2*s4**2*s6**3
397
+ + 22572*s2**2*s3**2*s4*s5**2*s6**2 + 225*s2**2*s3**2*s5**4*s6 - 144*s2**2*s3*s4**6*s5
398
+ + 14784*s2**2*s3*s4**3*s5*s6**2 - 12020*s2**2*s3*s4**2*s5**3*s6 + 625*s2**2*s3*s4*s5**5
399
+ + 536544*s2**2*s3*s5*s6**4 + 16*s2**2*s4**8 - 3072*s2**2*s4**5*s6**2 + 1096*s2**2*s4**4*s5**2*s6
400
+ + 250*s2**2*s4**3*s5**4 - 93744*s2**2*s4**2*s6**4 - 249480*s2**2*s4*s5**2*s6**3 +
401
+ 70125*s2**2*s5**4*s6**2 + 162*s2*s3**6*s5**2*s6 - 54*s2*s3**5*s4**2*s5*s6 + 198*s2*s3**5*s4*s5**3
402
+ - 210*s2*s3**4*s4**3*s5**2 - 3564*s2*s3**4*s5**2*s6**2 + 72*s2*s3**3*s4**5*s5 - 12204*s2*s3**3*s4**2*s5*s6**2
403
+ + 1935*s2*s3**3*s4*s5**3*s6 - 8*s2*s3**2*s4**7 + 2520*s2*s3**2*s4**4*s6**2 + 1962*s2*s3**2*s4**3*s5**2*s6
404
+ - 125*s2*s3**2*s4**2*s5**4 - 178848*s2*s3**2*s4*s6**4 - 165240*s2*s3**2*s5**2*s6**3
405
+ - 144*s2*s3*s4**5*s5*s6 - 200*s2*s3*s4**4*s5**3 + 139104*s2*s3*s4**2*s5*s6**3 + 72900*s2*s3*s4*s5**3*s6**2
406
+ - 20625*s2*s3*s5**5*s6 - 96*s2*s4**7*s6 + 56*s2*s4**6*s5**2 + 19296*s2*s4**4*s6**3
407
+ - 22080*s2*s4**3*s5**2*s6**2 - 7750*s2*s4**2*s5**4*s6 + 3125*s2*s4*s5**6 + 248832*s2*s4*s6**5
408
+ - 129600*s2*s5**2*s6**4 - 27*s3**7*s5**3 + 27*s3**6*s4**2*s5**2 - 9*s3**5*s4**4*s5
409
+ + 1944*s3**5*s4*s5*s6**2 + 54*s3**5*s5**3*s6 + s3**4*s4**6 - 432*s3**4*s4**3*s6**2
410
+ - 486*s3**4*s4**2*s5**2*s6 + 46656*s3**4*s6**4 + 36*s3**3*s4**4*s5*s6 + 50*s3**3*s4**3*s5**3
411
+ - 7776*s3**3*s4*s5*s6**3 + 29700*s3**3*s5**3*s6**2 + 24*s3**2*s4**6*s6 - 14*s3**2*s4**5*s5**2
412
+ - 9936*s3**2*s4**3*s6**3 - 29160*s3**2*s4**2*s5**2*s6**2 - 10125*s3**2*s4*s5**4*s6
413
+ + 3125*s3**2*s5**6 + 1026432*s3**2*s6**5 + 6336*s3*s4**4*s5*s6**2 + 11700*s3*s4**3*s5**3*s6
414
+ - 3125*s3*s4**2*s5**5 - 1477440*s3*s4*s5*s6**4 + 432000*s3*s5**3*s6**3 + 144*s4**6*s6**2
415
+ - 2472*s4**5*s5**2*s6 + 625*s4**4*s5**4 - 29376*s4**3*s6**4 + 529200*s4**2*s5**2*s6**3
416
+ - 292500*s4*s5**4*s6**2 + 40625*s5**6*s6 - 186624*s6**6)
417
+ ],
418
+ (6, 2): [
419
+ lambda s1, s2, s3, s4, s5, s6: (-s3),
420
+ lambda s1, s2, s3, s4, s5, s6: (-s1*s5 + s2*s4 - 9*s6),
421
+ lambda s1, s2, s3, s4, s5, s6: (s1*s2*s6 + 2*s1*s3*s5 - s1*s4**2 - s2**2*s5 + 6*s3*s6 + s4*s5),
422
+ lambda s1, s2, s3, s4, s5, s6: (s1**2*s4*s6 - s1**2*s5**2 - 3*s1*s2*s3*s6 + s1*s2*s4*s5 + 9*s1*s5*s6 + s2**3*s6 -
423
+ 9*s2*s4*s6 + s2*s5**2 + 3*s3**2*s6 - 3*s3*s4*s5 + s4**3 + 27*s6**2),
424
+ lambda s1, s2, s3, s4, s5, s6: (-2*s1**3*s6**2 + 2*s1**2*s2*s5*s6 + 2*s1**2*s3*s4*s6 - s1**2*s3*s5**2 - s1*s2**2*s4*s6
425
+ - 3*s1*s2*s6**2 - 16*s1*s3*s5*s6 + 4*s1*s4**2*s6 + 2*s1*s4*s5**2 + 4*s2**2*s5*s6 +
426
+ s2*s3*s4*s6 + 2*s2*s3*s5**2 - s2*s4**2*s5 - 9*s3*s6**2 - 3*s4*s5*s6 - 2*s5**3),
427
+ lambda s1, s2, s3, s4, s5, s6: (s1**3*s3*s6**2 - 3*s1**3*s4*s5*s6 + s1**3*s5**3 - s1**2*s2**2*s6**2 + s1**2*s2*s3*s5*s6
428
+ - 2*s1**2*s4*s6**2 + 6*s1**2*s5**2*s6 + 16*s1*s2*s3*s6**2 - 3*s1*s2*s5**3 - s1*s3**2*s5*s6
429
+ - 2*s1*s3*s4**2*s6 + s1*s3*s4*s5**2 - 30*s1*s5*s6**2 - 4*s2**3*s6**2 - 2*s2**2*s3*s5*s6
430
+ + s2**2*s4**2*s6 + 18*s2*s4*s6**2 - 2*s2*s5**2*s6 - 15*s3**2*s6**2 + 16*s3*s4*s5*s6
431
+ + s3*s5**3 - 4*s4**3*s6 - s4**2*s5**2 - 27*s6**3),
432
+ lambda s1, s2, s3, s4, s5, s6: (s1**4*s5*s6**2 + 2*s1**3*s2*s4*s6**2 - s1**3*s2*s5**2*s6 - s1**3*s3**2*s6**2 + 9*s1**3*s6**3
433
+ - 14*s1**2*s2*s5*s6**2 - 11*s1**2*s3*s4*s6**2 + 6*s1**2*s3*s5**2*s6 + 3*s1**2*s4**2*s5*s6
434
+ - s1**2*s4*s5**3 + 3*s1*s2**2*s5**2*s6 + 3*s1*s2*s3**2*s6**2 - s1*s2*s3*s4*s5*s6 +
435
+ 39*s1*s3*s5*s6**2 - 14*s1*s4*s5**2*s6 + s1*s5**4 - 11*s2*s3*s5**2*s6 + 2*s2*s4*s5**3
436
+ - 3*s3**3*s6**2 + 3*s3**2*s4*s5*s6 - s3**2*s5**3 + 9*s5**3*s6),
437
+ lambda s1, s2, s3, s4, s5, s6: (-s1**4*s2*s6**3 + s1**4*s3*s5*s6**2 - 4*s1**3*s3*s6**3 + 10*s1**3*s4*s5*s6**2 - 4*s1**3*s5**3*s6
438
+ + 8*s1**2*s2**2*s6**3 - 8*s1**2*s2*s3*s5*s6**2 - 2*s1**2*s2*s4**2*s6**2 + s1**2*s2*s4*s5**2*s6
439
+ + s1**2*s3**2*s4*s6**2 - 6*s1**2*s4*s6**3 - 7*s1**2*s5**2*s6**2 - 24*s1*s2*s3*s6**3
440
+ - 4*s1*s2*s4*s5*s6**2 + 10*s1*s2*s5**3*s6 + 8*s1*s3**2*s5*s6**2 + 8*s1*s3*s4**2*s6**2
441
+ - 8*s1*s3*s4*s5**2*s6 + s1*s3*s5**4 + 36*s1*s5*s6**3 + 8*s2**2*s3*s5*s6**2 - 2*s2**2*s4*s5**2*s6
442
+ - 2*s2*s3**2*s4*s6**2 + s2*s3**2*s5**2*s6 - 6*s2*s5**2*s6**2 + 18*s3**2*s6**3 - 24*s3*s4*s5*s6**2
443
+ - 4*s3*s5**3*s6 + 8*s4**2*s5**2*s6 - s4*s5**4),
444
+ lambda s1, s2, s3, s4, s5, s6: (-s1**5*s4*s6**3 - 2*s1**4*s5*s6**3 + 3*s1**3*s2*s5**2*s6**2 + 3*s1**3*s3**2*s6**3
445
+ - s1**3*s3*s4*s5*s6**2 - 8*s1**3*s6**4 + 16*s1**2*s2*s5*s6**3 + 8*s1**2*s3*s4*s6**3
446
+ - 6*s1**2*s3*s5**2*s6**2 - 8*s1**2*s4**2*s5*s6**2 + 3*s1**2*s4*s5**3*s6 - 8*s1*s2**2*s5**2*s6**2
447
+ - 8*s1*s2*s3**2*s6**3 + 8*s1*s2*s3*s4*s5*s6**2 - s1*s2*s3*s5**3*s6 - s1*s3**3*s5*s6**2
448
+ - 24*s1*s3*s5*s6**3 + 16*s1*s4*s5**2*s6**2 - 2*s1*s5**4*s6 + 8*s2*s3*s5**2*s6**2 -
449
+ s2*s5**5 + 8*s3**3*s6**3 - 8*s3**2*s4*s5*s6**2 + 3*s3**2*s5**3*s6 - 8*s5**3*s6**2),
450
+ lambda s1, s2, s3, s4, s5, s6: (s1**6*s6**4 - 4*s1**4*s2*s6**4 - 2*s1**4*s3*s5*s6**3 + s1**4*s4**2*s6**3 + 8*s1**3*s3*s6**4
451
+ - 4*s1**3*s4*s5*s6**3 + 2*s1**3*s5**3*s6**2 + 8*s1**2*s2*s3*s5*s6**3 - 2*s1**2*s2*s4*s5**2*s6**2
452
+ - 2*s1**2*s3**2*s4*s6**3 + s1**2*s3**2*s5**2*s6**2 - 4*s1*s2*s5**3*s6**2 - 12*s1*s3**2*s5*s6**3
453
+ + 8*s1*s3*s4*s5**2*s6**2 - 2*s1*s3*s5**4*s6 + s2**2*s5**4*s6 - 2*s2*s3**2*s5**2*s6**2
454
+ + s3**4*s6**3 + 8*s3*s5**3*s6**2 - 4*s4*s5**4*s6 + s5**6)
455
+ ],
456
+ }
phi4/lib/libatomic.so.1.2.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2f1a92c18f01c13c9a89908fb86a7309ae5b89a882db9914114957bc4b6fed92
3
+ size 143648
phi4/lib/libncurses.a ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:873bc902fcba042e3e980451cae21218095aa52298dcce1a9ac7e415beecb1f0
3
+ size 544910
phi4/lib/libtinfow.so ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5723ac562b0964b4ad4d8a83e06f9d8aa716290f8f689503e5b989e9e3da7b76
3
+ size 287080
phi4/lib/libtinfow.so.6.4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5723ac562b0964b4ad4d8a83e06f9d8aa716290f8f689503e5b989e9e3da7b76
3
+ size 287080
phi4/lib/python3.10/lib2to3/fixes/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (392 Bytes). View file
 
phi4/lib/python3.10/lib2to3/fixes/__pycache__/fix_dict.cpython-310.pyc ADDED
Binary file (3.28 kB). View file
 
phi4/lib/python3.10/lib2to3/fixes/__pycache__/fix_exec.cpython-310.pyc ADDED
Binary file (1.39 kB). View file
 
phi4/lib/python3.10/lib2to3/fixes/__pycache__/fix_exitfunc.cpython-310.pyc ADDED
Binary file (2.56 kB). View file
 
phi4/lib/python3.10/lib2to3/fixes/__pycache__/fix_future.cpython-310.pyc ADDED
Binary file (1.04 kB). View file
 
phi4/lib/python3.10/lib2to3/fixes/__pycache__/fix_getcwdu.cpython-310.pyc ADDED
Binary file (781 Bytes). View file
 
phi4/lib/python3.10/lib2to3/fixes/__pycache__/fix_has_key.cpython-310.pyc ADDED
Binary file (2.87 kB). View file