Sam Powell - ti 83/84 programs - Math/Computer Teacher - Northridge H.S. - Middlebury Indiana |Programming Page |TI 83/84 Programs |mrpowell.net |

TI 83/84 - Quadratic Formula Example


Purpose : This program will find real roots to a quadratic equation by inputting the coefficients. As an exercise, see if you can edit the program using an if statement so that it accepts quadratic equations which contain imaginary roots like sample output 4.

ClrHome                                               /Clearing the screen on Calculator
Disp "ENTER A"                                  /Displays the string "Enter A"
Input A                                                 /Stores the user input in the variable A
Disp "ENTER B"                                  /Displays the string "Enter B"
Input B                                                 /Stores the user input in the variable B
Disp "ENTER C"                                  /Displays the string "Enter C"
Input C                                                  /Stores the user input in the variable C
equation1   / Calculates the first root and stores it in X
equation2   / Calculates the second root and stores it in Y
ClrHome                                               /Clearing the screen on Calculator
Disp "X=",X                                         /Displays the string "X=" and the Value of X
Disp "X=”, Y                                        /Displays the string "X=" and the Value of Y

Sample Output 1

ENTER A
?1
ENTER B
?5
ENTER C
?6

X=      
                        -2
X=      
                        -3

Sample Output 2

ENTER A
?1
ENTER B
?9
ENTER C
?-5

X=      
                        .5249378106
X=      
                       -9.524937811

Sample Output 3

ENTER A
?1
ENTER B
?4
ENTER C
?4

X=      
                        -2
X=      
                        -2

 

Sample Output 4

ENTER A
?1
ENTER B
?0
ENTER C
?4

X=      
                        -2i
X=      
                        2i