jupter notebookで以下を実行 range()もmath.sin()も思い出せなかった。
%matplotlib inline import matplotlib.pyplot as plt import math x=[] y=[] for i in range(0,100): s = i/10 x.append(s) y.append(math.sin(s)) plt.plot(x,y) plt.show()
jupter notebookで以下を実行 range()もmath.sin()も思い出せなかった。
%matplotlib inline import matplotlib.pyplot as plt import math x=[] y=[] for i in range(0,100): s = i/10 x.append(s) y.append(math.sin(s)) plt.plot(x,y) plt.show()