python sin(x)/x 图像
生活随笔
收集整理的這篇文章主要介紹了
python sin(x)/x 图像
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
python sin(x)/x 圖像
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Jan 30 15:27:47 2019@author: lg """import math import numpy as npfrom matplotlib import pyplot as plta=np.arange(-100,100,0.0001)b=[]def sx(k):t1=math.sin(k)/kreturn t1def plott(px):for k in a:if k!=0:temp1=px(k)b.append(temp1)plt.figure(figsize=(8,6))plt.plot(a,b)plott(sx)posted on 2019-01-30 15:41 luoganttcc 閱讀(...) 評論(...) 編輯 收藏
總結
以上是生活随笔為你收集整理的python sin(x)/x 图像的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 泊松方程与拉普拉斯方程数值解
- 下一篇: pytho sin(1/x)震荡间断点