Numerical solver - Newton-Raphson method
The program downloadable from this page is a numerical solver. It attempts to find the zeroes of a function $f(x)$, i.e. it attempts to find $x$ such that $f(x)=0$ There are several methods for this. One that requires little computing power is Newton's Method, or the Newton-Raphson method, a description of which can be found on Wikipedia . We have no way of knowing the exact value of $f'(x)$ on the HP-41CX used here because that machine has no symbolic math capabilities, so we calculate an approximation of $f'(x)$ by taking a small value $\epsilon$ and calculating: \[ f'(x) \approx \frac {f(x+\epsilon)-f(x)} \epsilon \] This then allows us to calculate the next value of $x$ to use and display so that we see the calculator homing in on the zero that we're looking for: \[ x_{n+1} = x_n - \frac {f(x_n)} {f'(x_n)} \] Once we find a value of $x$ such that $|f(x)| \lt \epsilon$, we stop and that value of $x$ is deemed to be a zero of $f(x)$. The s...