求3/x-sin3x=0 的根的個數(畫圖)

x3sin(3x)=0\dfrac {x}{3}-sin\left( 3x\right) =0

ef f(t):
    return np.sin(3*t)
def f1(x):
    return x/3
t1=np.arange(-10,10,0.001)
t2=np.arange(-10,10,0.002)
plt.figure(1,figsize=(8,6))
plt.subplot(211)
plt.plot(t1,f(t1))
plt.plot(t2,f1(t2))
plt.show()

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章