In [1]:
import numpy as np
import matplotlib.pyplot as plt
from scipy.special import erf
In [9]:
x=np.arange(-5,5,0.01)
plt.plot(x,erf(x))
plt.xlim(-5,5)
plt.xlabel('x')
plt.ylabel('erf(x)')
plt.show()
In [7]:
erf(-1/np.sqrt(2))
Out[7]:
-0.6826894921370859
In [ ]: