Max Alekseyev on Fri, 24 Jan 2025 16:12:31 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

equality of t_INTMODs


Hello,

In view of a recently discovered issue in Sage (https://github.com/sagemath/sage/issues/39372), I'd like to check how the following two (in)equalities co-exist in PARI/GP. Do they violate any design conventions and/or represent a notable exception to those?

? Mod(14,20) == Mod(39,55)
%1 = 0
? Mod(14,20) - Mod(39,55) == 0
%2 = 1

Regards,
Max