Astronuc said:
... but try a double integral, as in...
The double integral method is good for evaluating the definite integral of exp(-x^2/2) from -infinty to infinity, but it is of no use for integrating over finite limits.
The double integral method works by transforming the square of the integral into a double integral over a region of the x,y plane. Since the element of area
dx dy becomes r \, dr \, d\theta then it follows that the inner of the two dimensional (dr \, d\theta) integral becomes the trivial \int r e^{-r^2/2} dr.
The catch is that the limits of the integration correspond to a
square region of the x,y plane, so
r is not a constant! Bascially the difficulty just gets tranferred to the outer d\theta integral, so in general this is no solution.
For the specific case of the integral from -infinity to +infinity however the double integral is over the entire x,y plane and therefore the difficulty with the rectangular limits vanishes. This is the standard method of proving that \int_{-\infty}^{+\infty} e^{-x^2/2} dx = \sqrt{2 \pi}
But anyway, can someone give me a reasonable function for an approximation.
Goolging for 'erf approximations' gives several very good approximations in the first few hits. One nice simple one is :\frac{1}{\sqrt{2 \pi}} \int_x^{\infty} e^{-x^2/2} \, \simeq \frac{ e^{-x^2/2} } {1.64 x + \sqrt{0.76 x^2 + 4}}