E-Code

Quadratic roots, exact when possible — a TI-89 Titanium program

By E-Code · updated

QUADR89 is a TI-89 BASIC program for the TI-89 Titanium. Solves ax²+bx+c=0 and keeps rational roots exact (1/2, not .5); reports no real roots or a double root.

What it asks for and what it shows

It asks for 3 values at its prompts. In the example below it shows DISC, X1, X2.

Example run

One of its oracle test cases: “x²-5x+6: rational roots stay exact”. The inputs are typed in order, and the results are the values the case expects on the screen.

StepValue
You enter
Input 11
Input 2-5
Input 36
The screen shows
DISC=1
X1=3
X2=2

How it's checked

6 test cases, each checked against an independent method. Replayed key by key on a virtual TI-89 Titanium, they make 26 checks.

How E-Code checks every program

Run it or put it on your calculator

Related programs

All TI-89 Titanium math programs · All TI-89 Titanium programs