Skip to content

Commit 77f4c3e

Browse files
authored
Merge pull request #8 from ederc/v0.3.0
v0.3.0
2 parents d33c4a1 + f718784 commit 77f4c3e

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name = "AlgebraicSolving"
22
uuid = "66b61cbe-0446-4d5d-9090-1ff510639f9d"
33
authors = ["ederc <[email protected]>",
44
"Mohab Safey El Din <[email protected]"]
5-
version = "0.2.2"
5+
version = "0.3.0"
66

77
[deps]
88
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
@@ -13,5 +13,5 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1313

1414
[compat]
1515
julia = "1.6"
16-
msolve_jll = "0.4.2"
17-
Nemo = "0.32.0"
16+
msolve_jll = "0.4.6"
17+
Nemo = "0.32.5"

src/algorithms/solvers.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,9 @@ function rational_solutions(
336336

337337
end
338338

339-
return rat_sols
339+
I.rat_sols = rat_sols
340340

341+
return I.rat_sols
341342
end
342343

343344

src/types.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ mutable struct Ideal{T <: MPolyElem}
3030
dim::Int
3131
gb::Dict{Int, Vector{T}}
3232
real_sols::Vector{Vector{fmpq}}
33+
rat_sols::Vector{Vector{fmpq}}
3334
rat_param::RationalParametrization
3435

3536
function Ideal(F::Vector{T}) where {T <: MPolyElem}

test/algorithms/solvers.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,8 @@
4646
I = Ideal([x1^2-x2, x1*x3-x4, x2*x4-12, x4^3-x3^2])
4747
real_solutions(I)
4848
@test I.rat_param.vars == Symbol[]
49+
50+
I = Ideal([x1^2-x2, x1*x3, x2-12])
51+
@test_throws ErrorException real_solutions(I)
52+
@test_throws ErrorException rational_solutions(I)
4953
end

0 commit comments

Comments
 (0)