In [24]:
%pylab inline
from scipy import special as sp
from scipy import stats as st


Populating the interactive namespace from numpy and matplotlib

In [21]:
t = linspace(-5,5,1000)
y = sp.gamma(t)
plot(t,y)


Out[21]:
[<matplotlib.lines.Line2D at 0x7f1a0c200208>]

In [17]:
sp.gamma(-1)


Out[17]:
inf

In [37]:
t = linspace(0,1)
y = 2*st.norm.cdf(t*5) - 1
plot(t,y)


Out[37]:
[<matplotlib.lines.Line2D at 0x7f1a052c9240>]

In [44]:
y = 2/(1+exp(-(t*10)))-1
plot(t,y)


Out[44]:
[<matplotlib.lines.Line2D at 0x7f1a050dc2e8>]