Trapezoid and Simpson vs nInt — a TI-89 Titanium program
INTEG89 is a TI-89 BASIC program for the TI-89 Titanium. Type f(x), the limits and an even number of panels: the trapezoid and Simpson estimates, the calculator's nInt value, and each rule's error.
What it asks for and what it shows
It asks for 4 values at its prompts. In the example below it shows TRAP, SIMPSON, NINT, TRAP ERR.
Example run
One of its oracle test cases: “x² from 0 to 3”. 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^2 |
| Input 2 | 0 |
| Input 3 | 3 |
| Input 4 | 6 |
| The screen shows | |
TRAP= | 9.125 |
SIMPSON= | 9 |
NINT= | 9 |
TRAP ERR= | 0.125 |
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 21 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 “Trapezoid and Simpson vs nInt” (INTEG89).
- Put it on your own calculator with a computer and a USB cable, or type it in by hand.
Related programs
- Newton's method on a typed function
- ODE: Euler vs RK4 table
- Series partial sums, exact
- Quadratic roots, exact when possible
- Linear system, exact answers
All TI-89 Titanium math programs · All TI-89 Titanium programs