Solutions for Jupyter notebook on formulae


Question 1

n= 100
lam= 0.34
t= 10.1
print(n*np.exp(-lam*t))


Question 2

sig= 2
m= 0.1
x= 1
print(np.exp(-(x - m)**2/2/sig**2)/np.sqrt(2*np.pi)/sig)


Question 3

lam= 10.4
n= 10
print(lam**n*np.exp(-lam)/np.math.factorial(10))