equality of t_INTMODs

Max Alekseyev <[email protected]>
Newsgroups gmane.comp.mathematics.pari.user
Message-ID <CAJkPp5PbrmnyofhFsap0BBg5V+TD=17=KDf03BJOYnMBbvANyQ@mail.gmail.com>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.