How To Program The Quadratic Formula On A Ti-84 Plus Ce Calculator

You Just Need the Answer, Not the Algebra

You’re staring at a quadratic equation, the clock is ticking, and the pressure is on. Maybe it’s a timed test, a challenging homework set, or a complex engineering problem. You know the quadratic formula is the key, but writing it out by hand feels slow and error-prone.

What if your TI-84 Plus CE could do that heavy lifting for you? Not by solving it magically, but by running the formula for you—instantly, accurately, every single time. Programming the quadratic formula into your calculator isn’t about cutting corners; it’s about working smarter, verifying your work, and saving precious mental energy for the harder concepts.

This guide will walk you through creating a clean, reliable program that asks for A, B, and C, then delivers the solutions. We’ll cover everything from basic entry to handling complex numbers, ensuring you have a tool that works in any situation.

Why Program the Formula Yourself?

Before we start typing code, let’s address the obvious: there are pre-made apps. You could download a quadratic solver from online archives. However, there are compelling reasons to build your own.

First, understanding the program’s structure reinforces your understanding of the formula itself. You’ll see exactly how the discriminant dictates the output. Second, a self-written program is trustworthy; you know there’s no hidden bug or malware. Finally, the process teaches you the fundamentals of TI-BASIC programming, a skill you can use to automate other repetitive calculations in math, physics, or statistics.

Our goal is to create a program that is user-friendly, robust, and educationally sound. It will handle real and complex roots gracefully and provide clear on-screen prompts.

Accessing the Programming Menu

Turn on your TI-84 Plus CE. Press the PRGM button. You’ll see three tabs at the top: EXEC, EDIT, and NEW.

Navigate to the NEW tab using the right arrow key. Press ENTER to create a new program. The calculator will prompt you to name your program. Choose a clear, memorable name like QUADFORM. Avoid using spaces. Press ENTER again after typing the name.

You are now in the program editor, a blank screen where you will enter the code. This is your workspace. The colon (:) at the start of each line is automatically inserted by the calculator and signifies a new line of code.

Building the Program Step-by-Step

We will write the program in logical sections: input, calculation, and output. Type the following lines carefully, pressing ENTER at the end of each line. Remember, all commands are found by pressing the PRGM button while in the editor, which brings up a menu of programming commands.

Prompting for the Coefficients

The first job of our program is to ask the user for the three coefficients (A, B, and C) from the standard form equation: Ax² + Bx + C = 0.

We use the Prompt command. Navigate to the PRGM menu, go to the I/O (Input/Output) submenu, and select 2:Prompt.

Type the following line:

:Prompt A,B,C

This command will display “A=?” on the screen, wait for you to type a number and press ENTER, then do the same for “B=?” and “C=?”. The values you enter are stored in the calculator’s memory as variables A, B, and C.

Calculating the Discriminant

The heart of the quadratic formula is the discriminant: D = B² – 4AC. It tells us the nature of the roots.

We’ll calculate this and store it in a variable, which we’ll call D. Type this line:

:B²-4AC→D

To type the square (²), press the button. The arrow (→) is the store command, accessed by pressing the STO→ key. This line computes the value and saves it to variable D.

Checking the Discriminant and Calculating Roots

Now we implement the logic. We need to check if D is negative (complex roots), zero (one real root), or positive (two real roots). We use an If-Then-Else structure.

Go to PRGM > CTL (Control) > 1:If. Then type the condition:

:If D<0

Press ENTER. The next line will automatically be indented. This is the “Then” block, which executes if D is less than 0 (i.e., we have complex roots).

For complex roots, we calculate the real and imaginary parts. The real part is -B/(2A). The imaginary part is √(-D)/(2A). We must use the absolute value of D because we need its positive square root.

Type these indented lines:

:Disp “COMPLEX ROOTS”

:-B/(2A)→R

:√(abs(D))/(2A)→I

:Disp “X1 =”,R,”+”,I,”i”

:Disp “X2 =”,R,”-“,I,”i”

The Disp command (PRGM > I/O > 3:Disp) shows text and variable values on the screen. abs( is the absolute value function. We store the real part in R and the imaginary part in I for clean display.

Now, we need the “Else” part for when D is >= 0. Press ENTER to get a new, non-indented line. Go to PRGM > CTL > 3:Else and press ENTER.

The lines after Else will execute if D is zero or positive. First, we calculate the two standard real roots.

:(-B+√(D))/(2A)→X

how to put quadratic formula in calculator ti-84 plus ce

:(-B-√(D))/(2A)→Y

To get the square root symbol (√), press the 2ND key then the key. Now, we need another If statement inside this block to check if the roots are the same (D=0).

:If D=0

:Then

:Disp “ONE REAL ROOT:”

:Disp X

:Else

:Disp “TWO REAL ROOTS:”

:Disp “X1 =”,X

:Disp “X2 =”,Y

:End

This nested If structure ensures a clear message. Finally, we must close the very first If statement. After the inner End, press ENTER and go to PRGM > CTL > 7:End.

The Complete Program Code

Here is the full, assembled code for your QUADFORM program. Double-check your editor against this list.

:Prompt A,B,C

:B²-4AC→D

:If D<0

:Then

:Disp “COMPLEX ROOTS”

:-B/(2A)→R

:√(abs(D))/(2A)→I

:Disp “X1 =”,R,”+”,I,”i”

:Disp “X2 =”,R,”-“,I,”i”

:Else

:(-B+√(D))/(2A)→X

:(-B-√(D))/(2A)→Y

:If D=0

:Then

:Disp “ONE REAL ROOT:”

:Disp X

:Else

:Disp “TWO REAL ROOTS:”

:Disp “X1 =”,X

:Disp “X2 =”,Y

how to put quadratic formula in calculator ti-84 plus ce

:End

:End

To exit the editor and save your program, press 2ND then MODE (which is the QUIT button). Your program is now saved and ready to run.

Running and Testing Your Solver

It’s crucial to test your program with different types of equations to ensure it works correctly.

Press the PRGM button. Navigate to the EXEC tab. You should see your program, QUADFORM, listed. Select it and press ENTER. The name will appear on the home screen. Press ENTER again to run it.

Test Case 1: Two Real Roots

Let’s solve x² – 5x + 6 = 0. The roots are 2 and 3.

When prompted, enter A=1, B=-5, C=6. The program should display “TWO REAL ROOTS:” followed by X1 = 3 and X2 = 2. It calculates them correctly.

Test Case 2: One Real Root

Solve x² – 6x + 9 = 0. This factors to (x-3)², so the root is 3.

Enter A=1, B=-6, C=9. The program should display “ONE REAL ROOT:” and the value 3.

Test Case 3: Complex Roots

Solve x² + 2x + 5 = 0. The roots are -1 ± 2i.

Enter A=1, B=2, C=5. The program should display “COMPLEX ROOTS” and then show X1 = -1 + 2i and X2 = -1 – 2i.

If any test fails, re-enter the editor (PRGM > EDIT, select QUADFORM) and carefully compare your code to the complete listing above. A single missing parenthesis or incorrect variable name can cause errors.

Enhancing Your Program for Daily Use

The basic program is functional, but a few tweaks can make it a powerhouse for your math toolkit.

Adding a Pause for Readability

The results can flash by quickly. After the final Disp commands, add a pause. Go to PRGM > I/O > 8:Pause. This will freeze the screen displaying the answer until you press ENTER, giving you time to write it down.

Creating a Loop for Multiple Equations

If you need to solve several equations in a row, a loop saves time. Before the :Prompt A,B,C line, you can add a label (e.g., Lbl 1 from PRGM > CTL > 9:Lbl). After the final End and your Pause, add the line :Goto 1 (PRGM > CTL > 0:Goto). This will make the program jump back to the start after each solve. To exit, press the ON button to break the program.

Handling the Special Case of A=0

The quadratic formula requires A to be non-zero. Our current program will crash with a division by zero error if A=0 is entered. You can add a check at the very beginning:

:If A=0

:Then

:Disp “NOT QUADRATIC (A=0)”

:Stop

:End

Insert this block right after the Prompt command. The Stop command (PRGM > CTL > F:Stop) ends the program gracefully.

What to Do When Things Go Wrong

Even with careful typing, you might encounter errors. Here’s how to diagnose them.

If you get a SYNTAX ERROR when running the program, it means the calculator found an instruction it doesn’t understand. Press 2 (Goto) when the error appears. The editor will open, and the cursor will be placed at or near the problematic line. Common causes are a missing parenthesis, a misplaced quote, or a typo in a command like “Dsip” instead of “Disp”.

If the program runs but gives a DIVIDE BY ZERO error, you likely entered A=0. Implement the A=0 check described above to prevent this.

If the program runs but gives a mathematically incorrect answer, double-check the formula lines. Ensure the discriminant calculation is B² – 4AC (not B² – 4A*C, though that also works). Verify the root formulas are (-B±√(D))/(2A). The parentheses are critical for correct order of operations.

Managing Memory and Programs

If you want to delete the program to start over or free up space, press 2ND + + (Mem), select 2:Mem Mgmt/Del…, then 7:Prgm…. Find QUADFORM in the list, press DEL, and confirm.

To edit an existing program, use PRGM > EDIT, select the program name, and press ENTER. You can then navigate through the code and make changes.

Beyond the Basic Formula

With this program as a foundation, you’ve gained the fundamental skills of TI-BASIC programming. You now understand input, variables, conditional logic, and output. You can apply these concepts to automate other formulas.

Consider programming the distance formula, the Pythagorean theorem, or the vertex formula for a parabola. The pattern is the same: prompt for inputs, perform the calculation, and display the result with clear labels. Each new program you write makes you more efficient and deepens your computational thinking.

Your TI-84 Plus CE is more than a graphing tool; it’s a programmable computer for mathematics. By investing the time to build your own quadratic solver, you’ve customized it to fit your workflow perfectly. You have a verified, instant-check tool for one of algebra’s most important formulas, freeing you to focus on interpretation and application—the true goals of learning mathematics.

Run a final test with an equation from your current work. See the answers appear, accurate and clear. That’s the payoff. The program is now a part of your toolkit, ready whenever a quadratic equation stands between you and the solution.

Leave a Comment

close