Advertisement
Guest User

Untitled

a guest
Apr 6th, 2020
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.19 KB | None | 0 0
  1. a=0;
  2. b=2;
  3. h=b-a;
  4. z=f(a);
  5. x=f(b);
  6. dokladna=exp(b)-exp(a);
  7. calka=(h/2)*(z+x);
  8. poch2=exp(b);
  9. reszta=(-1/12)*(h^3)*poch2;
  10. dokladnareszta=dokladna-calka;
  11. function y=f(x)
  12. y=exp(x);
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement