calculating residues examples - Search