Skip to content

Commit ae4a625

Browse files
committed
check that degree specializes well
1 parent da992bd commit ae4a625

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/algorithms/param-curve.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ function rational_curve_parametrization(
9797
end
9898
info_level>0 && println()
9999
for j in 1:length(free_ind)
100-
# For lifting: the same variable must be chosen for the param
101-
if Lr[j].vars == [symbols(R)[1:N-2]; symbols(R)[N]]
100+
# Specialization checks: same vars order, generic degree
101+
if Lr[j].vars == [symbols(R)[1:N-2]; symbols(R)[N]] && degree(Lr[j].elim) == DEG
102102
lc = leading_coefficient(Lr[j].elim)
103103
rr = [ p/lc for p in vcat(Lr[j].elim, Lr[j].denom, Lr[j].param) ]
104104
PARAM[j] = rr

0 commit comments

Comments
 (0)