A paper (admittedly a physics paper) I read has
$$\int_{-\infty}^{\infty} \frac{dt}{t} = \pm i \pi$$
"where a semicircular path of infinitesimal radius $\epsilon$ passes either counterclockwise or clockwise around $t=0$, yielding $+i\pi$ or $-i\pi$."
Any symbolic computing software says the integral does not converge. Can someone explain this?
Indeed, the integral does not converge, and $\pm i \pi$ is not a possible value for the integral of a real-valued function on an interval of real numbers, so taken at face value the statement makes no mathematical sense. However, physicists have a habit of making statements that make mathematical sense only if you don't take them too literally. In this case what makes mathematical sense is that the path integral $$\int_C \dfrac{dz}{z} = \pm i \pi$$ where $R > 0$ and $C$ is a path in the complex plane that goes from $-R$ to $R$ near the real line but avoids the origin, either passing above or below it.