Guest User

Untitled

a guest
Oct 20th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. function erg=mittel(a,b,n,f)
  2. h=(b-a)/n;
  3. tmp=0;
  4. for j=1:n
  5. mop=a+(j-0.5)*h;
  6. tmp=tmp+f(mop);
  7. end
  8. erg=h*tmp;
  9. end
Add Comment
Please, Sign In to add comment