Numerical Analysis Questions & Answers  


That's for you to find out. Check if you obtain reasonable convergence rates using your approach when $N$ is small (i.e. as you would expect for the Simpson rule) and if so, it means it's fine.




Hm, didn't I mention this in class..? It's a good observation, but not a question.




I'll check again your quiz to be sure. The problem in your case is that you used the Simpson rule to get $I_i$: you shouldn't do this here hence why you got 2/3.




Good question. You should implement the algorithm so that dt is changed at the final step in order to yield t=tmax after the iterative process. 2 points bonus.




No, this is not what the question says. You can't change $N$: you need to keep it as even.




You should use the forward Euler method for part (a) and (b). I'm not sure what you mean by “part of error”. Why do you want to find the error?



$\pi$ 