# Quick integration of a known function

From LPTMS Wiki

Revision as of 15:57, 15 January 2013 by Roux (talk | contribs) (Created page with "Using scipy.integrate <source lang="py"> from scipy.integrate import quad,Inf from math import sqrt,pi,exp print sqrt(pi), quad(lambda x: exp(-x**2),-Inf,Inf) </source>")

Using scipy.integrate

from scipy.integrate import quad,Inf from math import sqrt,pi,exp print sqrt(pi), quad(lambda x: exp(-x**2),-Inf,Inf)