sinx

from matplotlib import pyplot as plt
import numpy as np
import math
x=list(np.arange(-math.pi, math.pi,0.1))#此处可调整自变量取值范围,以便选择合适的观察尺度
y=[]
for i in range(len(x)):
    y.append(math.sin(x[i]))
plt.plot(x,y)
plt.show()

arcsinx

from matplotlib import pyplot as plt
import numpy as np
import math
x=list(np.arange(-1, 1,0.001))#此处可调整自变量取值范围,以便选择合适的观察尺度
y=[]
for i in range(len(x)):
    y.append(math.asin(x[i]))
plt.plot(x,y)
plt.show()

e^x

from matplotlib import pyplot as plt
import numpy as np
import math
x=list(np.arange(-1, 50,1))#此处可调整自变量取值范围,以便选择合适的观察尺度
y=[]
for i in range(len(x)):
    y.append(math.exp(x[i]))
plt.plot(x,y)
plt.show()

更多推荐