标签:mamicode das 2004a code com lib alt 位长 pac
三角函数的图像
y=sinx,x∈[2kπ,2(k+1)π,k∈Z且k≠0]
from matplotlib import pyplot as plt import numpy as np x=np.linspace(-2*np.pi,2*np.pi,100) y=np.sin(x) plt.plot(x,y) plt.show()
>>
由y=cosx=sin(x+π/2)—>y=cosx的图像为y=sinx向左平移π/2个单位长度
from matplotlib import pyplot as plt import numpy as np x=np.linspace(-2*np.pi,2*np.pi,100) y=np.cos(x) plt.plot(x,y) plt.show()
>>
~《人教版高二数学必修四(2004A版)》p31,32
标签:mamicode das 2004a code com lib alt 位长 pac
原文地址:https://www.cnblogs.com/vocus/p/11405443.html