@@ -216,13 +216,13 @@ is greater then zero an empty array is returned.
216216julia> using AlgebraicSolving
217217
218218julia> R,(x1,x2,x3) = PolynomialRing(QQ, ["x1","x2","x3"])
219- (Multivariate Polynomial Ring in x1, x2, x3 over Rational Field , Nemo.fmpq_mpoly [x1, x2, x3])
219+ (Multivariate polynomial ring in x1, x2, x3 over QQ , Nemo.QQMPolyRingElem [x1, x2, x3])
220220
221221julia> I = Ideal([x1+2*x2+2*x3-1, x1^2+2*x2^2+2*x3^2-x1, 2*x1*x2+2*x2*x3-x2])
222- 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]
222+ Nemo.QQMPolyRingElem [x1 + 2*x2 + 2*x3 - 1, x1^2 - x1 + 2*x2^2 + 2*x3^2, 2*x1*x2 + 2*x2*x3 - x2]
223223
224224julia> rational_parametrization(I)
225- AlgebraicSolving.RationalParametrization([:x1, :x2, :x3], fmpz [], 84*x^4 - 40*x^3 + x^2 + x, 336*x^3 - 120*x^2 + 2*x + 1, AbstractAlgebra.PolyElem [184*x^3 - 80*x^2 + 4*x + 1, 36*x^3 - 18*x^2 + 2*x])
225+ AlgebraicSolving.RationalParametrization([:x1, :x2, :x3], Nemo.ZZRingElem [], 84*x^4 - 40*x^3 + x^2 + x, 336*x^3 - 120*x^2 + 2*x + 1, AbstractAlgebra.PolyRingElem [184*x^3 - 80*x^2 + 4*x + 1, 36*x^3 - 18*x^2 + 2*x])
226226```
227227"""
228228function rational_parametrization (
@@ -269,18 +269,18 @@ the rational roots of the ideal.
269269julia> using AlgebraicSolving
270270
271271julia> R,(x1,x2,x3) = PolynomialRing(QQ, ["x1","x2","x3"])
272- (Multivariate Polynomial Ring in x1, x2, x3 over Rational Field , Nemo.fmpq_mpoly [x1, x2, x3])
272+ (Multivariate polynomial ring in x1, x2, x3 over QQ , Nemo.QQMPolyRingElem[ [x1, x2, x3])
273273
274274julia> 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.fmpq_mpoly [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
277277julia> rat_sols = rational_solutions(I)
278- 2-element Vector{Vector{fmpq }}:
278+ 2-element Vector{Vector{Nemo.QQFieldElem }}:
279279 [1, 0, 0]
280280 [1//3, 0, 1//3]
281281
282282julia> map(r->map(p->evaluate(p, r), I.gens), rat_sols)
283- 2-element Vector{Vector{fmpq }}:
283+ 2-element Vector{Vector{Nemo.QQFieldElem }}:
284284 [0, 0, 0]
285285 [0, 0, 0]
286286```
0 commit comments