A fractional residue theorem and its applications in calculating real integrals | Synapse