I have the following integral to compute $$ \int_{-\infty}^{A} \frac{1}{(4 \pi)} \Big[ \text{erf}\Big(\frac{k M - x + 2 \pi}{\sqrt{2} k S}\Big) - \text{erf}\Big(\frac{k M - x}{\sqrt{2} k S}\Big) \Big] dx $$ Where $\text{erf}$ is the error function. Mathematica does compute the indefinite integral, but not the definite one like this. If I see the indefinite integral, it looks like that at $-\infty$, the function is not converging. However, looking at the function, I feel at $-\infty$, the integrand of this must be $0$. The indefinite integral from Mathematica: $$\frac{1}{4\pi} \Bigg[ \left(k M-x\right) \text{erf}\left(\frac{k \mu_{\omega}-x}{\sqrt{2} k S}\right) \\ +\left(-k M+x-2 \pi \right) \text{erf}\left(\frac{k M-x+2 \pi }{\sqrt{2} k S}\right)+\sqrt{\frac{2}{\pi }} k S \left(e^{-\frac{\left(x-k M\right)^2}{2 k^2 S^2}}-e^{-\frac{\left(k M-x+2 \pi \right)^2}{2 k^2 S^2}}\right) \Bigg] $$