Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagenone
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
:


Du får bruk for at:

Definerer en vanlig (mattematisk) funksjon:

Code Block
languagenone
function y = f(x)
y = x;
end

...