import numpy as np
import matplotlib.pyplot as plt
def f(x):
return(np.cos(x))
def T(x):
return(1)
def E(x):
return(f(x)-T(x))
h=np.linspace(0,1,200)
plt.plot(h,abs(E(h)))
plt.plot(h,0.5*h**2)
[<matplotlib.lines.Line2D at 0x7f26eb49db20>]