Algebraic Approach of Residues and Applications