 Various methods exist for calculating this value, and the choice of which method to use depends on the function in question, and on the nature of the singularity.According to the residue theorem, we have