[http://aedbest.wordpress.com]
\[\int_{-a}^{a} \frac{1}{\sqrt{(2\pi)}}\exp{\frac{-x^2}{2}}dx\]
a=1
f <- function(x) {1/sqrt(2*pi)*exp(-x^2/2)}
integrate(f, lower = -a, upper = a)
0.6826895 with absolute error < 7.6e-15
a=2
f <- function(x) {1/sqrt(2*pi)*exp(-x^2/2)}
integrate(f, lower = -a, upper = a)
0.9544997 with absolute error < 1.8e-11
a=3
f <- function(x) {1/sqrt(2*pi)*exp(-x^2/2)}
integrate(f, lower = -a, upper = a)
0.9973002 with absolute error < 9.3e-07
a=Inf
f <- function(x) {1/sqrt(2*pi)*exp(-x^2/2)}
integrate(f, lower = -a, upper = a)
1 with absolute error < 9.4e-05