Numerical Analysis Questions & Answers | |
|
|
Yes you are right: in Question A1Q2b and A1Q2d, we are seeking the smallest possible positive number. Thanks for pointing this out. I'll give you 2 points bonus boost.
|
|
|
|
|
|
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.
|
|
||
$\pi$ |