Numerical Analysis Questions & Answers | |
|
|
|
|
I understand what is confusing you. When determining $g$, $e_\max$ refers to the maximum possible positive exponent. But in other cases it refers to the maximum possible positive exponent minus one (because the maximum positive exponent is reserved). They should have been written with 2 symbols in class to avoid confusion. In your notes, rewrite $e_\max$ to $e_\max^\prime$ when determining $p_\max$, with $e_\max^\prime=e_\max-1$. Good point, I'll give you 2 points bonus.
|
|
|
|
For A2Q3, there is no initial interval. For A2Q1, I have made a change to the question formulation. I'll give you 1.5 points bonus boost for pointing this out — I would have given more if you had not made spelling mistakes.
|
|
|
|
The secant method only needs one $x$ for the initial guess (it functions similarly to the Newton method). But you also need to specify a small $\Delta x$ initially to calculate the derivatives. Just set it to a small value of your choice: this won't affect much the convergence history as long as it is not too small.
|
|
|
|
I don't understand. Are you trying to code a sin(x) function? If so, there is no need to code it because the function sin(x) is already defined in the math library.
|
|
|
|
You can call it forward substitution if you wish, this is the correct term. In class, I mentioned that this is the same process as back substitution (but going from top to bottom rather than bottom to top) to make it clear that this is not a new type of process. I'll give you 1.5 point bonus boost for sharing this with the class.
|
|
||
$\pi$ |