y1 = np.cos(x) y2 = 1 - 1 / 2 * x ** 2 y3 = 1 - 1 / 2 * x ** 2 + 1 / 24 * x ** 4 # 设置标题和图表 plt.title("$y = cos(x) ≈ 1 - 1/2*x^2 ≈ 1 - 1/2*x^2 + 1/24*x^4$") plt.plot(x, y1, label='$cos(x)$') plt.plot(x, y2, label='...