Newton's method on a typed function — a TI-89 Titanium program
NEWTON89 is a TI-89 BASIC program for the TI-89 Titanium. Type f(x) as text and a starting guess: every Newton iterate is shown, then the root, f(root) and the number of steps; reports a flat spot or no convergence.
What it asks for and what it shows
It asks for 2 values at its prompts. In the example below it shows ROOT.
Example run
One of its oracle test cases: “x³-2x-5 from 2”. The inputs are typed in order, and the results are the values the case expects on the screen.
| Step | Value |
|---|---|
| You enter | |
| Input 1 | x^3-2*x-5 |
| Input 2 | 2 |
| The screen shows | |
ROOT= | 2.094551482 |
How it's checked
4 test cases, each checked against an independent method. Replayed key by key on a virtual TI-89 Titanium, they make 12 checks.
How E-Code checks every program
Run it or put it on your calculator
- Open the library in the TI-89 Titanium calculator and pick “Newton's method on a typed function” (NEWTON89).
- Put it on your own calculator with a computer and a USB cable, or type it in by hand.
Related programs
- Trapezoid and Simpson vs nInt
- ODE: Euler vs RK4 table
- Quadratic roots, exact when possible
- Linear system, exact answers
- Fraction calculator: exact, mixed, decimal
All TI-89 Titanium math programs · All TI-89 Titanium programs