A program to calculate the Discriminant of a quadratic polynomial and the corresponding zeros for the Texas Instruments TI-84 Plus.
Disclaimer: I wrote this basic program back when I was 16. The code has not been changed ever since, however, I decided to release it now. :)
The quadratic function is one of the form f(x) = ax² + bx + c. In the formula, x refers to an unknown variable; a, b, and c refer to the coefficients representing known real or complex numbers. However, coefficient a can not be 0.
To solve the equation, the unknown variable x is also referred to as roots or zeros, can be solved as follows:
Whereas the plus-minus symbol should be solved separately, resulting in two roots.
Under the root, the quantity Δ = b² - 4ac is known as the discriminant of the quadratic equation.
If a ≠ 0; the discriminant is zero if and only if the polynomial has a double root.
If real coefficients; the discriminant is positive if the polynomial has two disctinct real roots.
If real coefficients; the discriminant is negative if the polynomial has two disctinct complex conjugate roots.
This program was coded to enhance the efficiency of solving the discriminant and finding the zeros during my classes of mathematics. It's developed to use on the Texas Instruments TI-84 Plus calculators.
The program captures the quadratic formula by user input of a, b, and c.
As an example, in function f(x) = 4x² - 6x + 2, we understand that a = 4, b = -6, and c = 2.
Solving the Discriminant goes as follows:
f(x) = 4x² - 6x + 2
x = (-6)² - 4.4.2
x = 36 - 32
x = 4
X is positive in this case, meaning there are two real roots.
x = [-b ± √(b2 - 4ac)]/2a
x = [-(-6) ± √((-6)² - 4.4.2)]/2.4
x = [6 ± √4]/8
x = (6 - 2)/8 and (6 + 2)/8
x = 0.5 and x = 1
In the quadratic function f(x) = 4x² - 6x + 2 the parabola will have zeros at x = 0.5 and x = 1.
The program solves all 3 formulas in less than 1 second. :)
2. Connect the TI-84 Plus calculator to your computer using the cable.
3. Download the DiscriminantTI application from GitHub.
4. Open the TI Connect software and head over to the 3rd vertical tab. (3 square blocks)
5. Click on "Open Program" and select the DiscriminantTI application.
6. Click on "Actions" (4th horizontal tab) and click on "send to calculators".
The application is now available on the calculator by using the "PRGM" button. (3rd row, 3rd button) The application may throw an error after you have entered the 3 variables:
In this case, you will be greeted with the "ERR: NONREAL ANS" error. Click on "Quit" or option "1". The program will show you the negative discriminant.
You have entered the wrong '-' sign; you will be greeted immediately with "ERR: SYNTAX". Click on "Goto" or option "2" and replace the "-" sign with "(-)".
I have no plans to further develop more functionality.
However, this leaves room for you to develop further upon the basics. :)