Numerical Analysis Questions & Answers | |
|
|
You can find the exact value by using a very large $N$. So, just double $N$ until the value of the integral doesn't change significantly anymore and use this as the exact value. 2 points bonus.
|
|
|
|
No, there is no work done when doing the pivoting operation because there is no addition or multiplication. This was mentioned above for a similar question.
|
|
|
|
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.
|
|
||
$\pi$ |