/
__init__.py
93 lines (81 loc) · 1.65 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
"""Polynomial manipulation algorithms and algebraic objects. """
from polytools import (
Poly, poly,
poly_from_expr,
parallel_poly_from_expr,
degree, degree_list,
LC, LM, LT,
pdiv, prem, pquo, pexquo,
div, rem, quo, exquo,
half_gcdex, gcdex, invert,
subresultants,
resultant, discriminant,
cofactors, gcd, lcm, terms_gcd,
trunc,
monic, content, primitive,
compose, decompose,
sturm,
gff_list, gff,
sqf_norm, sqf_part, sqf_list, sqf,
factor_list, factor,
intervals, refine_root, count_roots,
real_roots, nroots,
cancel,
reduced, groebner,
symmetrize,
horner,
)
from polyerrors import (
OperationNotSupported,
ExactQuotientFailed,
UnificationFailed,
GeneratorsNeeded,
RefinementFailed,
PolynomialError,
CoercionFailed,
NotInvertible,
NotReversible,
NotAlgebraic,
DomainError,
)
from numberfields import (
minimal_polynomial, minpoly,
primitive_element, primelt,
field_isomorphism,
to_number_field,
AlgebraicNumber,
isolate,
)
from monomialtools import (
Monomial, monomials, monomial_count,
)
from rootoftools import (
RootOf, RootSum,
)
from polyroots import (
roots,
)
from domains import (
FF, GF, ZZ, QQ, RR, EX,
)
from constructor import (
construct_domain,
)
from specialpolys import (
swinnerton_dyer_poly,
cyclotomic_poly,
symmetric_poly,
random_poly,
)
from orthopolys import (
chebyshevt_poly,
chebyshevu_poly,
hermite_poly,
legendre_poly,
laguerre_poly,
)
from partfrac import (
apart,
)
from polyoptions import Options
import polycontext as ctx