Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a=0;
- b=2;
- h=b-a;
- z=f(a);
- x=f(b);
- dokladna=exp(b)-exp(a);
- calka=(h/2)*(z+x);
- poch2=exp(b);
- reszta=(-1/12)*(h^3)*poch2;
- dokladnareszta=dokladna-calka;
- function y=f(x)
- y=exp(x);
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement