"Source: Text/Basics/RngIntRes.text";
"Line: 60";
"Date: Thu Sep 25 14:47:46 2025";
"Main: Fri Sep 26 14:29:19 2025";
// original file: Text/Basics/RngIntRes.text, line: 60
// Example: H20E1 ()
print "Example: H20E1";
ei := GetEchoInput();
SetEchoInput(true);
Z := IntegerRing();
I13 := ideal< Z | 13 >;
I13;
1 in I13;
assert not $1;
0 in I13;
assert $1;
-13 in I13;
assert $1;
I0 := ideal< Z | 0 >;
0 in I0;
assert $1;
1 in I0;
assert not $1;
I1 := ideal< Z | 1 >;
I1 eq Z;
assert $1;
SetEchoInput(ei);
