E-Code

Polynomial roots, complex included — a TI-84 Plus CE program

By E-Code · updated

CPOLY is a TI-BASIC program for the TI-84 Plus CE. Every root, real or complex, of a degree 1-5 polynomial typed as a coefficient list, by Bairstow's quadratic factors (no a+bi mode needed); shows real and imaginary parts and the residual |p(root)|.

What it asks for and what it shows

It asks for 1 value at its prompts. In the example below it shows RESID.

Example run

One of its oracle test cases: “x^2+2x+5 complex pair”. The inputs are typed in order, and the results are the values the case expects on the screen.

StepValue
You enter
Input 1{1,2,5}
The screen shows
RESID=0

How it's checked

9 test cases, each checked against an independent method. Replayed key by key on a virtual TI-84 Plus CE, they make 34 checks.

How E-Code checks every program

Run it or put it on your calculator

Related programs

All TI-84 Plus CE math programs · All TI-84 Plus CE programs