I'm getting an error when importing scipy
into Python. When I write:
import scipy as sp
x2 = lambda x: x**2
print sp.integrate.quad(x2, 0, 4)
I get the error:
sp.integrate.quad: "NameError: name 'integrate' is not defined".
Why am I getting this error?