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
When the modulus is negative, Nemo always returns a positive remainder. This is inconsistent with what Julia or AbstractAlgebra does. We should switch to the Julia definition.
For example, mod(2, -3) returns -1 in Julia and 2 in Nemo. The Julia definition is better because if a = 2 and m = -3 we have:
a = mq + r where q = -1 and r is between 0 and m.
And just for fun:
mod(ZZ(2), -3)
currently returns 0ffffffffffffffff which wouldn't be my favourite answer.
The text was updated successfully, but these errors were encountered:
When the modulus is negative, Nemo always returns a positive remainder. This is inconsistent with what Julia or AbstractAlgebra does. We should switch to the Julia definition.
For example, mod(2, -3) returns -1 in Julia and 2 in Nemo. The Julia definition is better because if a = 2 and m = -3 we have:
a = mq + r where q = -1 and r is between 0 and m.
And just for fun:
currently returns 0ffffffffffffffff which wouldn't be my favourite answer.
The text was updated successfully, but these errors were encountered: