Skip to content

Commit da30f6d

Browse files
committed
more fixes on doc tests
1 parent abb2572 commit da30f6d

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

src/algorithms/groebner-bases.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ At the moment the underlying algorithm is based on variants of Faugère's F4 Alg
2727
julia> using AlgebraicSolving
2828
2929
julia> R, (x,y,z) = PolynomialRing(GF(101),["x","y","z"], ordering=:degrevlex)
30-
(Multivariate polynomial ring in x, y, z over GF(101), Nemo.fpMPolyRingElem[x, y, z])
30+
(Multivariate polynomial ring in 3 variables over GF(101), Nemo.fpMPolyRingElem[x, y, z])
3131
3232
julia> I = Ideal([x+2*y+2*z-1, x^2+2*y^2+2*z^2-x, 2*x*y+2*y*z-y])
3333
Nemo.fpMPolyRingElem[x + 2*y + 2*z + 100, x^2 + 2*y^2 + 2*z^2 + 100*x, 2*x*y + 2*y*z + 100*y]
@@ -81,20 +81,20 @@ At the moment the underlying algorithm is based on variants of Faugère's F4 Alg
8181
julia> using AlgebraicSolving
8282
8383
julia> R, (x,y,z) = PolynomialRing(GF(101),["x","y","z"], ordering=:degrevlex)
84-
(Multivariate polynomial ring in x, y, z over GF(101), Nemo.fpMPolyRingElem[x, y, z])
84+
(Multivariate polynomial ring in 3 variables over GF(101), Nemo.fpMPolyRingElem[x, y, z])
8585
8686
julia> I = Ideal([x+2*y+2*z-1, x^2+2*y^2+2*z^2-x, 2*x*y+2*y*z-y])
87-
emo.fpMPolyRingElem[x + 2*y + 2*z + 100, x^2 + 2*y^2 + 2*z^2 + 100*x, 2*x*y + 2*y*z + 100*y]
87+
Nemo.fpMPolyRingElem[x + 2*y + 2*z + 100, x^2 + 2*y^2 + 2*z^2 + 100*x, 2*x*y + 2*y*z + 100*y]
8888
8989
julia> groebner_basis(I)
90-
4-element Vector{emo.fpMPolyRingElem}:
90+
4-element Vector{Nemo.fpMPolyRingElem}:
9191
x + 2*y + 2*z + 100
9292
y*z + 82*z^2 + 10*y + 40*z
9393
y^2 + 60*z^2 + 20*y + 81*z
9494
z^3 + 28*z^2 + 64*y + 13*z
9595
9696
julia> groebner_basis(I, eliminate=2)
97-
1-element Vector{emo.fpMPolyRingElem}:
97+
1-element Vector{Nemo.fpMPolyRingElem}:
9898
z^4 + 38*z^3 + 95*z^2 + 95*z
9999
```
100100
"""

src/algorithms/solvers.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ is greater then zero an empty array is returned.
216216
julia> using AlgebraicSolving
217217
218218
julia> R,(x1,x2,x3) = PolynomialRing(QQ, ["x1","x2","x3"])
219-
(Multivariate polynomial ring in x1, x2, x3 over QQ, Nemo.QQMPolyRingElem[x1, x2, x3])
219+
(Multivariate polynomial ring in 3 variables over QQ, Nemo.QQMPolyRingElem[x1, x2, x3])
220220
221221
julia> I = Ideal([x1+2*x2+2*x3-1, x1^2+2*x2^2+2*x3^2-x1, 2*x1*x2+2*x2*x3-x2])
222222
Nemo.QQMPolyRingElem[x1 + 2*x2 + 2*x3 - 1, x1^2 - x1 + 2*x2^2 + 2*x3^2, 2*x1*x2 + 2*x2*x3 - x2]
@@ -269,10 +269,10 @@ the rational roots of the ideal.
269269
julia> using AlgebraicSolving
270270
271271
julia> R,(x1,x2,x3) = PolynomialRing(QQ, ["x1","x2","x3"])
272-
(Multivariate polynomial ring in x1, x2, x3 over QQ, Nemo.QQMPolyRingElem[[x1, x2, x3])
272+
(Multivariate polynomial ring in 3 variables over QQ, Nemo.QQMPolyRingElem[x1, x2, x3])
273273
274274
julia> I = Ideal([x1+2*x2+2*x3-1, x1^2+2*x2^2+2*x3^2-x1, 2*x1*x2+2*x2*x3-x2])
275-
Nemo.QQMPolyRingElem[[x1 + 2*x2 + 2*x3 - 1, x1^2 - x1 + 2*x2^2 + 2*x3^2, 2*x1*x2 + 2*x2*x3 - x2]
275+
Nemo.QQMPolyRingElem[x1 + 2*x2 + 2*x3 - 1, x1^2 - x1 + 2*x2^2 + 2*x3^2, 2*x1*x2 + 2*x2*x3 - x2]
276276
277277
julia> rat_sols = rational_solutions(I)
278278
2-element Vector{Vector{Nemo.QQFieldElem}}:
@@ -365,13 +365,13 @@ is greater than zero an empty array is returned.
365365
julia> using AlgebraicSolving
366366
367367
julia> R,(x1,x2,x3) = PolynomialRing(QQ, ["x1","x2","x3"])
368-
(Multivariate Polynomial Ring in x1, x2, x3 over Rational Field, Nemo.fmpq_mpoly[x1, x2, x3])
368+
(Multivariate polynomial ring in 3 variables over QQ, Nemo.QQMPolyRingElem[x1, x2, x3])
369369
370370
julia> I = Ideal([x1+2*x2+2*x3-1, x1^2+2*x2^2+2*x3^2-x1, 2*x1*x2+2*x2*x3-x2])
371-
Nemo.fmpq_mpoly[x1 + 2*x2 + 2*x3 - 1, x1^2 - x1 + 2*x2^2 + 2*x3^2, 2*x1*x2 + 2*x2*x3 - x2]
371+
Nemo.QQMPolyRingElem[x1 + 2*x2 + 2*x3 - 1, x1^2 - x1 + 2*x2^2 + 2*x3^2, 2*x1*x2 + 2*x2*x3 - x2]
372372
373373
julia> real_solutions(I)
374-
4-element Vector{Vector{fmpq}}:
374+
4-element Vector{Vector{Nemo.QQFieldElem}}:
375375
[5416829397//8589934592, 2708414699//8589934592, -2844258330290649520990905062759917788583//21778071482940061661655974875633165533184]
376376
[1, 0, 0]
377377
[1945971683//8589934592, 972985841//8589934592, 744426424910260862653434112767010536665//2722258935367507707706996859454145691648]

src/examples/katsura.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Returns the Katsura ideal in the given polynomial ring `R`.
5050
julia> using AlgebraicSolving
5151
5252
julia> R, _ = QQ["x", "y", "z"]
53-
(Multivariate polynomial ring in x, y, z over Rational Field, Nemo.QQMPolyRingElem[x, y, z])
53+
(Multivariate polynomial ring in 3 variables over QQ, Nemo.QQMPolyRingElem[x, y, z])
5454
5555
julia> katsura(R)
5656
Nemo.QQMPolyRingElem[x + 2*y + 2*z - 1, x^2 - x + 2*y^2 + 2*z^2, 2*x*y + 2*y*z - y]

0 commit comments

Comments
 (0)