Residue theorem same as Cauchy integral theorem