{{{id=1|
K. = NumberField(x^2 + 1)
I = K.fractional_ideal(3 + 4*i)
I
///
Fractional ideal (4*i + 3)
}}}
{{{id=2|
# Test to see if (1+2*i) and (4+6*i) are congruent modulo the ideal I:
(1 + 2*i) - (4 + 6*i) in I
///
True
}}}
{{{id=26|
# They are. Test another congruence, where they aren't.
(3 + 2*i) - (4 + 6*i) in I
///
False
}}}
{{{id=29|
# Test to see if (1+2*i) and (4+6*i) are congruent modulo the ideal I^2:
(1 + 2*i) - (4 + 6*i) in I^2
///
False
}}}
{{{id=31|
}}}
{{{id=28|
}}}
{{{id=3|
}}}