- 学习分享
函数
- 2024-11-20 11:25:13 @
# 函数 log10(x) sin(x) 0.5x**
import numpy as np
import matplotlib.pyplot as plt
x=np.arange(-5,5,0.1)
y=np.sin(x)
a=np.log10(x)
b=0.5**x
plt.xlabel('x')
plt.ylabel('y')
plt.plot(x,y)
plt.plot(x,a)
plt.plot(x,b)
plt.show()
0 条评论
目前还没有评论...