Skip to content

Commit f64273d

Browse files
committed
further fixes for I=R situation
1 parent e8d07eb commit f64273d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/algorithms/solvers.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ function _core_msolve(
131131
nterms = 0
132132

133133
if jl_dquot == 0
134-
I.rat_param = RationalParametrization(Symbol[], fmpz[], fmpq_poly(-1), fmpq_poly(-1), PolyElem[])
134+
C,x = PolynomialRing(QQ,"x")
135+
I.rat_param = RationalParametrization(Symbol[], fmpz[], C(-1), C(-1), PolyElem[])
135136
I.real_sols = fmpq[]
136137
return I.rat_param, I.real_sols
137138
end

src/types.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,5 @@ end
4545
Base.parent(I::Ideal) = Nemo.parent(I.gens[1])
4646

4747
Base.show(io::IO, I::Ideal) = print(io, I.gens)
48-
Base.show(io::IO, R::RationalParametrization) = R.vars == Symbol[] ? print(io, "Solution set is empty.") : print(io, R)
4948

5049
Base.getindex(I::Ideal, idx::Int) = I.gens[idx]

0 commit comments

Comments
 (0)