Using the full toolkit? Read the step-by-step Polynomial Toolkit guide for quartic, cubic, and quadratic workflows, worked examples, and a reminder to keep every root you find.
algebra · MIT License
Overview
Test one proposed zero of a cubic polynomial and display its synthetic-division quotient and bottom row.
- Owner-tested on a TI calculator
- Downloaded 41 times
- Version 1.0.0
- 1916 bytes
- No imports
Tried it? Did this program work on your calculator?
Before you run it
- TI-84 Plus CE Python · No calculator OS or Python App version has been verified.
- TI Connect CE .py transfer to the Python App; the owner's transfer details were not recorded
- Inputs are valid numeric values for a cubic polynomial.
- This program tests one supplied zero; it does not generate rational-root candidates.
- It compares the calculated remainder with exact floating-point zero.
Try the DuckieDai calculator screen
Follow the program's prompts and result flow before downloading.
TI-84 Plus CE Python · screen preview
Learn the math
How synthetic division tests a zero
The idea
Synthetic division is a shortcut for dividing a polynomial by (x - c). If the remainder is 0, then c is a zero and the other numbers in the bottom row are the coefficients of what is left.
The formula
f(x) = (x - c)*q(x) + R
c is a zero exactly when R = 0
c- the value you are testing
q(x)- the quotient, one degree lower
R- the remainder, which also equals f(c)
Using the program
- Enter the four coefficients of a cubic, then the value to test.
- The program shows the remainder, whether the value is a zero, the quotient, and the full bottom row.
Worked example
Test x = 2 on x^3 - 6x^2 + 11x - 6. Enter 1, -6, 11, -6, then 2.
The program shows R: 0.0 and IT IS A ZERO, with the quotient 1.0 x^2, -4.0 x, 3.0, which means x^2 - 4x + 3.
Tips and common mistakes
- Enter a 0 for any missing power of x.
- The remainder is the value of the polynomial at c, so this also evaluates f(c).
- Factor the quotient next to find the remaining zeros.
Where this comes up
Synthetic division is taught in the polynomial unit of algebra 2, precalculus, and college algebra, together with the Remainder and Factor Theorems.
Go further: How to Find All the Zeros of a Polynomial
Exact reviewed bytes
Source code
"""DuckieDai Synthetic Zero Tester for TI-84 Plus CE Python."""def duckiedai_intro(program_name, wait=True):title = program_name[:16]empty = 16 - len(title)left = empty // 2right = empty - leftprint("+----------------------+")print("| " + " " * left + title + " " * right + " |")print("| |")print("| __ |")print("| ___(o )> quack! |")print("| \\ <_. ) |")print("| `---' |")print("| by DuckieDai |")print("| hiddenwordscanner.com|")print("+----------------------+")print("Loading...")if wait:input("Press enter to start ")print("\n" * 8)def clear_screen():print("\n" * 8)def run_test():clear_screen()print("Enter coefficients")print("ax^3+bx^2+cx+d")print("")a = float(input("x^3: "))b = float(input("x^2: "))c = float(input("x: "))d = float(input("Const: "))zero = float(input("Test zero: "))first = asecond = b + first * zerothird = c + second * zeroremainder = d + third * zeroclear_screen()print("ZERO TEST")print("---------")print("Test:", zero)print("R:", remainder)print("")if remainder == 0:print("TRUE!")print("IT IS A ZERO")else:print("FALSE")print("NOT A ZERO")input("\nPress enter ")clear_screen()print("QUOTIENT")print("--------")print(first, "x^2")print(second, "x")print(third)input("\nPress enter ")clear_screen()print("BOTTOM ROW")print("----------")print(first, second)print(third, remainder)duckiedai_intro("Zero Tester")while True:run_test()print("")again = input("Again? y/n: ")if again.lower() != "y":breakclear_screen()print("DuckieDai says: done!")
- Filename
zeroTS.py- Size
- 1916 bytes
- SHA-256
52e0e9120a72c8527ba6ea4ee3ba41600464cd9ce292079faf3d7d76ec0710ee
Usage
Inputs
- Numeric coefficients a, b, c, and d for ax^3 + bx^2 + cx + d
- One numeric zero to test
Outputs
- True or false zero result
- Quadratic quotient coefficients
- Synthetic-division bottom row
Units: Polynomial coefficients; no physical units.
Assumptions and limitations
Assumptions
- Inputs are valid numeric values for a cubic polynomial.
Constraints
- This program tests one supplied zero; it does not generate rational-root candidates.
- It compares the calculated remainder with exact floating-point zero.
Known failures
- A mathematically zero decimal result can be reported false when floating-point residue is not exactly zero.
- Invalid numeric input uses the calculator Python input error path.
Compatibility and review
- Review status
- Owner-tested on a TI calculator
- Tested on
- Owner reports personally testing this program on a TI-84 Plus CE Python calculator; the test date, OS version, and Python App version were not recorded
- What happened
- Owner reported pass on the calculator. The published file is the owner's tested source.
- Dependencies
- No imports
- Suggested calculator name
ZEROTS— you can give it another valid, unique name when you transfer it- Desktop test cases
- Not available for this interactive-only source
This exact source auto-launches an interactive calculator session, so compatibility evidence comes from the recorded physical-device review rather than an importable desktop fixture.
Transfer and launch
Download the .py file, send it to your calculator with TI Connect CE as ZEROTS or another name, then open the Python App and try the worked example on this page first. This release has no verified calculator OS or Python App version; treat transfer and execution as unverified until independently tested.
Full installation and troubleshooting guide. Check your teacher's or exam's rules before using any program.
Version history
- 1.0.0 — current version, published . Download this reviewed version
Related learning
Did a DuckieDai program help with your homework? Every program here is free. If you would like to say thanks, you can leave a tip on Cash App ($duckiedai214) or read what tips pay for.
Independent compatibility resource: Hidden Word Scanner is independent and is not affiliated with or endorsed by Texas Instruments. TI product names describe compatibility only.
Action-count privacy: Successful downloads, preview starts, and preview completions increment same-origin aggregate counters, and so does a Yes or No answer about whether the program worked. Your browser notes that you answered; that note is never sent to the site. No entered values, source text, IP address, account, cookie, device identifier, or fingerprint is stored with these counts.