...
Code Block | ||
---|---|---|
| ||
n =200; c = 1; for i = [2:2:n] e(c) = simpsons(0,pi,i,@sin); c = c+1; end loglog([1:n/2], e-2) |
...
Anchor nyttig nyttig
:
nyttig | |
nyttig |
Du får bruk for at:
Definerer en vanlig (mattematisk) funksjon:
Code Block | ||
---|---|---|
| ||
function y = f(x) y = x; end |
...