import matplotlib.pyplot as plt
import numpy as np
x=np.arange(-5,6)
y=x**4+3*x**3+x**2+4*x
yl =4*x**3+9*x**2+2*x+4
y2=12*x**2+18*x+2
y3=24*x+18
plt.subplot(221)
plt.plot (x,y, 'r' )
plt.subplot (221)
plt.plot (x,yl,'b--')
plt.subplot (223)
plt.plot (x,y2, 'g : ' )
plt.subplot (224)
plt.plot (x,y3,color='yellow', linestyle='',marker ='v')
plt.show()
实验7:7-5
最新推荐文章于 2024-07-24 23:49:50 发布