| Hosted by CoCalc | Download
# Beispiel zum Differenzenquotienten im Vergleich zur Ableitung f(x)=x^3 + 1 g=diff(f,x) @interact def _(h=(-1,1)): p=plot(f(x), (x, -2, 2)) q=plot(f(1) + g(1)*(x-1), (x, -2, 2), color='red', linestyle='--') r=plot(f(1) +(f(1+h)-f(1))/h*(x-1), (x, -2, 2),gridlines=True, color='green') show(p+q+r)
Interact: please open in CoCalc