maverick280857
- 1,774
- 5
Hi,
For a small problem I'm working on in quantum field theory, I have to numerically evaluate the integral
\int_{-\infty}^{t}du e^{i\omega u}erf\left(\frac{u}{\sqrt{2}\sigma}\right)
where erf(z) is the error function.
Now, I have to replace -\infty by some large negative number, so I effectively end up evaluating
\int_{-t_H}^{t}du e^{i\omega u}erf\left(\frac{u}{\sqrt{2}\sigma}\right)
If I use Matlab or Mathematica to evaluate this integral numerically, I get warnings indicating that the integrand is singular, or highly oscillatory. Secondly, the choice of t_H seems critical, and since the integrand itself doesn't fall off asymptotically, its not clear to me how t_H should be chosen in terms of \sigma.
Note that in the t_H, t \rightarrow \infty limit, this is just the Fourier Transform of the error function, which is well defined for \omega \neq 0. Incidentally, \omega \neq 0 is ensured in my physical problem.
Any suggestions for how this integral could be numerically evaluated?
Secondly, what is a good way to evaluate the error function of a complex number, i.e. erf(a + ib) where a and b are real, and i = sqrt(-1)?
Thanks in advance!
For a small problem I'm working on in quantum field theory, I have to numerically evaluate the integral
\int_{-\infty}^{t}du e^{i\omega u}erf\left(\frac{u}{\sqrt{2}\sigma}\right)
where erf(z) is the error function.
Now, I have to replace -\infty by some large negative number, so I effectively end up evaluating
\int_{-t_H}^{t}du e^{i\omega u}erf\left(\frac{u}{\sqrt{2}\sigma}\right)
If I use Matlab or Mathematica to evaluate this integral numerically, I get warnings indicating that the integrand is singular, or highly oscillatory. Secondly, the choice of t_H seems critical, and since the integrand itself doesn't fall off asymptotically, its not clear to me how t_H should be chosen in terms of \sigma.
Note that in the t_H, t \rightarrow \infty limit, this is just the Fourier Transform of the error function, which is well defined for \omega \neq 0. Incidentally, \omega \neq 0 is ensured in my physical problem.
Any suggestions for how this integral could be numerically evaluated?
Secondly, what is a good way to evaluate the error function of a complex number, i.e. erf(a + ib) where a and b are real, and i = sqrt(-1)?
Thanks in advance!