September 15th, 2014, 2:02 pm
In Mathematica, say you want to integrate some f[z] along this contour you mention with [$]z_i = 1/2[$].Then, the integral is strictlyNIntegrate[f[x + I/2],{x,-Infinity,0,Infinity}]but in practice, you will often have a cutoff and, because the result is real, use2 NIntegrate[Re[f[x + I/2]],{x, 0, xmax}]Of course, if you want [$]z_i = c[$], then f[x + I c], etc.