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.
1 parent 30e2a03 commit 606ccc3Copy full SHA for 606ccc3
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