pytho sin(1/x)震荡间断点
生活随笔
收集整理的這篇文章主要介紹了
pytho sin(1/x)震荡间断点
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
pytho sin(1/x)震蕩間斷點
import math import numpy as npfrom matplotlib import pyplot as plta=np.arange(-1,1,0.00001)def sx(k):t1=math.sin(k)/kreturn t1def sx1(k):t1=math.sin(1/k)return t1b=[] c=[]for k in a:if k!=0:temp1=sx1(k)c.append(k)b.append(temp1)plt.figure(figsize=(8,6))plt.plot(c,b)posted on 2019-01-30 16:07 luoganttcc 閱讀(...) 評論(...) 編輯 收藏
總結
以上是生活随笔為你收集整理的pytho sin(1/x)震荡间断点的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python sin(x)/x 图像
- 下一篇: 画出沪深300指数曲线