Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Exo1()
- tab = [100 50 33.33 25 20 16.67 14.29 12.5 11.11]
- b=8;
- a=0;
- n=8;
- h=(b-a)/n;
- Int_trapeze=0;
- tic
- for i=0:h:(n-1)
- Int_trapeze = Int_trapeze + tab(i+2);
- end
- Int_trapeze = Int_trapeze * h/2
- toc
- endfunction
- Exo1()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement