Advertisement
Guest User

Untitled

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