Exercício 5.2
>
f:=x->exp(x);
d2f:=(D@@2)(f);
x0:=1.8;
h:=0.01;
D2fX0:=d2f(x0);
> DSegfX0:=DerSegunda(f,x0,h);
>
erro:=abs(D2fX0-DSegfX0);
majorante:=h^2/12*maximize(abs((D@@4)(f)(xi)),{xi},{xi=x0-h..x0+h});
>
>