アットウィキロゴ

ぷおお

import matplotlib.pyplot as plt
import matplotlib.cm as cm
import numpy as np
import numpy.random as rd
 
m = 10
s = 3
 
min_x = m-3*s
max_x = m+3*s
 
x = np.linspace(min_x, max_x, 101)
y = (1/np.sqrt(2*np.pi*s**2))*np.exp(-0.5*(x-m)**2/s**2)
 
plt.figure(figsize=(8,5))
plt.xlim(min_x, max_x)
plt.ylim(0,max(y)*2)
plt.plot(x,y)
plt.show() 
最終更新:2018年01月11日 00:30