You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia>using Nemo
julia> Qx, x =PolynomialRing(FlintQQ, "x");
julia> K, a =NumberField(x^3+3x +1, "a")
(Number field over Rational Field with defining polynomial x^3+3*x+1, a)
julia>divrem(a, a)
(1, 0)
julia>divrem(a, a)
ERROR: MethodError: no method matching rem(::nf_elem, ::nf_elem)
Closest candidates are:rem(::Any, ::Any, ::RoundingMode{:ToZero}) at math.jl:739rem(::Any, ::Any, ::RoundingMode{:Down}) at math.jl:740rem(::Any, ::Any, ::RoundingMode{:Up}) at math.jl:741
The text was updated successfully, but these errors were encountered:
Yeah, I thought it would be broken. We must overload Base.divrem everywhere (except for Julia types), not divrem. Otherwise it falls back to a generic method which calls rem. And of course that is not defined in this case.
@wbhart @heiderich
Before #252 :
After #252
The text was updated successfully, but these errors were encountered: