We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 30e2a03 + 606ccc3 commit fa5f6c5Copy full SHA for fa5f6c5
src/cmult.jl
@@ -11,7 +11,7 @@ function multiplyvar(v::Vector{PolyVar{true}}, x::PolyVar{true})
11
if (i != nothing && i > 0) && v[i] == x
12
multiplyexistingvar(v, x, i)
13
else
14
- insertvar(v, x, i == 0 ? length(v)+1 : i)
+ insertvar(v, x, (i == nothing || i == 0) ? length(v)+1 : i)
15
end
16
17
function (*)(x::PolyVar{true}, y::Monomial{true})
0 commit comments