sinとcosのグラフ、単振動の変位と速度の関係

また、sin2乗とcos2乗のグラフ、弾性エネルギーと運動エネルギーの関係

python で処理しています

In [2]:
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
x=np.arange(0,6.28,0.1)
y=np.cos(x)
z=np.sin(x)
plt.plot(x,y)
plt.plot(x,z)
Out[2]:
[<matplotlib.lines.Line2D at 0x2a3a950e320>]
In [1]:
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
x=np.arange(0,6.28,0.1)
y=np.cos(x)*np.cos(x)
z=np.sin(x)*np.sin(x)
w=np.sin(x)*np.sin(x)+np.cos(x)*np.cos(x)
plt.plot(x,y)
plt.plot(x,z)
plt.plot(x,w)
Out[1]:
[<matplotlib.lines.Line2D at 0x20fa2a965c0>]
In [ ]: