# Revision history [back]

### Ideal moduli and residue symbols

Hi, everyone;

I'm fairly new to sage, but I feel like I have some heavy lifting to do. I'm attempting to do a couple of things:

1) I need to see if two complex numbers are equivalent mod an ideal, eg pi == 1 mod 2+2i. It might be a dumb question but my searching thus far has come up short

2) I need to compute residue symbols, and I'm using the Number Field residue symbol method, but I'm having trouble. I have the following: C = ComplexField() I = C.0 r = C.ideal(b).residue_symbol(D,4) with a and b complex numbers. Help!

 2 retagged vdelecroix 6492 ●16 ●71 ●137 http://www.labri.fr/pe...

### Ideal moduli and residue symbols

Hi, everyone;

I'm fairly new to sage, but I feel like I have some heavy lifting to do. I'm attempting to do a couple of things:

1) I need to see if two complex numbers are equivalent mod an ideal, eg pi == 1 mod 2+2i. It might be a dumb question but my searching thus far has come up short

2) I need to compute residue symbols, and I'm using the Number Field residue symbol method, but I'm having trouble. I have the following: C = ComplexField() I = C.0 r = C.ideal(b).residue_symbol(D,4) with a and b complex numbers. Help!