I did this code:
from scitools.std import *
from sympy import *
x=Symbol('x')
#Integral function
#def f(x): --> I also tried this
# return exp(-x**2)
f=exp(-x**2)
intac=integrate(f,(x,0,1))
print(nsolve(f,x,1))
The interpreter gives me: "local variable x referenced before assignment"
If I try nsolve(f,x,(0,1))
it gives me: "could not find root within given tolerance..."
(Also, I tried findroot(f,(0,1))
without any success (I imported from mpmath import *
and then mp.dps = 30; mp.pretty = True
).