residue of cosezsinz2  at pi