You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Its return value is a tuple, say `R, vars`, consisting of a polynomial ring `R` with coefficient ring `C` and a vector `vars` of generators (variables) which print according to the strings in the vector `v` .
35
42
The input `ordering=:lex` refers to the lexicograpical monomial ordering which specifies the default way of storing and displaying polynomials in OSCAR (terms are sorted in descending
36
43
order). The other possible choices are `:deglex` and `:degrevlex`. Gröbner bases, however, can be computed with respect to any monomial ordering. See the section on Gröbner bases.
37
44
38
-
39
-
45
+
!!! note
46
+
Caching is used to ensure that a given ring constructed from given parameters is unique in the system. For example, there is only one ring of multivariate polynomials over $\mathbb{Z}$ in the variables x, y, z with `ordering=:lex`.
40
47
41
48
###### Examples
42
49
50
+
```@repl oscar
51
+
R, (x, y, z) = PolynomialRing(ZZ, ["x", "y", "z"])
52
+
typeof(R)
53
+
typeof(x)
54
+
S, (x, y, z) = PolynomialRing(ZZ, ["x", "y", "z"])
55
+
R === S
56
+
```
43
57
44
58
```@repl oscar
45
59
R1, x = PolynomialRing(QQ, ["x"])
@@ -50,12 +64,6 @@ R3, x = PolynomialRing(QQ, "x")
50
64
typeof(x)
51
65
```
52
66
53
-
```@repl oscar
54
-
R, (x, y, z) = PolynomialRing(ZZ, ["x", "y", "z"])
55
-
typeof(R)
56
-
typeof(x)
57
-
```
58
-
59
67
```@repl oscar
60
68
V = ["x[1]", "x[2]"]
61
69
T, x = PolynomialRing(GF(3), V)
@@ -120,14 +128,29 @@ QT = FractionField(T)
120
128
ZZ
121
129
```
122
130
123
-
## Data Associated to Polynomial Rings
131
+
## Gradings and Filtrations
132
+
133
+
The following functions implement multivariate polynomial rings decorated with $\mathbb Z$-gradings by (weighted) degree:
0 commit comments