Numerical Analysis Questions & Answers | |
|
|
Just define $\pi$ in the preamble of your code with #define pi 3.141592920 |
|
|
|
|
|
Proportional to does not exclude equal to..
|
|
|
|
You should not determine $k$ or $p$ analytically from the function here. Rather you should find them from the error obtained at each iteration only.
|
|
|
|
It is not necessary to distinguish between the initial error of Newton and of secant because both should be set to the same value for a fair comparison. Also, you should typeset your question better in the future and use latex for all math expressions.
|
|
|
|
There's some LATEX problems in your question formulation: you need to make sure the math is surrounded by \$ signs. Please post again below with correct typesetting.
|
|
||
$\pi$ |