Closed ahumenberger closed 5 years ago
I assume that these additions belong to MultivariatePolynomials.jl, right?
Indeed!
However, after adding the above two methods I get another error which is actually coming from DynamicPolynomials:
The issue is with [6] adjoint(::Polynomial{true,Union{}})
, it should be [6] adjoint(::Polynomial{true,Int64})
so it seems numerator
is returning this which is weird
I tracked down the issue. A method for dividing two RationalPoly is missing. That is the following piece of code does not work yet.
r = (n+1)/(n^2+1)
s = (n+2)/(n^2+2)
r / s
And the absence of this method also causes the problems above. Therefore, after adding something like
Base.:/(r::RationalPoly, s::RationalPoly) = (r.num * s.den) / (s.num * r.den)
everything works fine.
So, there are only changes to be made in MultivariatePolynomials.
The above piece of code causes two errors which can be fixed by adding the following two lines. I assume that these additions belong to MultivariatePolynomials.jl, right?
However, after adding the above two methods I get another error which is actually coming from DynamicPolynomials: