Hidden WordScanner
Private scans · No account required

DuckieDai Quartic Zero Tester

Test a proposed zero of a quartic and show the cubic quotient when synthetic division has zero remainder.

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 a proposed zero of a quartic and show the cubic quotient when synthetic division has zero remainder.

  • Tested on a TI calculator
  • Downloaded 69 times
  • Version 1.0.1
  • 2795 bytes
  • No imports

Before you run it

  • TI-84 Plus CE Python · tested on OS 5.8.3, Python App 5.8.3.0048
  • TI Connect CE .py conversion to a Python AppVar in RAM; physically tested one program at a time
  • Decimal remainders within 1E-7 display as zero.
  • Fractions must have a nonzero denominator.
  • Floating-point rounding can classify values close to zero differently than exact symbolic arithmetic.

Try the DuckieDai calculator screen

A browser implementation of the documented calculation flow. It does not execute the downloaded Python.

JavaScript is required for the optional browser simulation. Source viewing and downloading remain available without it.

Simulation boundary: This preview uses a reviewed browser adapter. It does not execute the downloaded Python and does not prove TI-Python or calculator compatibility.

Learn the math

How testing a zero of a quartic works

The idea

A quartic has an x^4 term and up to four zeros. Each zero you confirm lowers the degree by one, turning the quartic into a cubic and then a quadratic.

The formula

ax^4 + bx^3 + cx^2 + dx + e = (x - r)(cubic) when r is a zero

a to e
the five coefficients
r
the candidate zero
R
the remainder

Using the program

Worked example

Test x = 1 on x^4 - 5x^2 + 4. Enter 1, 0, -5, 0, 4, then 1.

The program shows R: 0 and IT IS A ZERO, with the CUBIC QUOTIENT 1 x^3, 1 x^2, -4 x, -4.

Doing it by hand

A quartic is solved by repeating one step. Each confirmed zero removes a factor and lowers the degree, so two successful tests leave a quadratic that you can factor or put through the quadratic formula.

Solve x^4 - 5x^2 + 4 = 0 completely. The coefficients are 1, 0, -5, 0, 4. Test x = 2 with synthetic division: bring down the 1, then multiply by 2 and add, four times.

1, 0 + 2 = 2, -5 + 4 = -1, 0 - 2 = -2, 4 - 4 = 0

The remainder is 0, so 2 is a zero and the quotient is the cubic x^3 + 2x^2 - x - 2. Now test x = 1 on that cubic.

1, 2 + 1 = 3, -1 + 3 = 2, -2 + 2 = 0

The remainder is 0 again, so 1 is a zero and the quotient is x^2 + 3x + 2, which factors as (x + 1)(x + 2). The four zeros are 2, 1, -1, and -2.

This quartic has only even powers, so its zeros come in plus-and-minus pairs. Spotting that pattern lets you test half as many candidates.

Tips and common mistakes

Where this comes up

Fourth-degree polynomials appear in the polynomial unit of algebra 2, precalculus, and college algebra, usually as the hardest zero-finding problems in the chapter.

Go further: How to Find All the Zeros of a Polynomial

Exact reviewed bytes

Source code

Download .py

View source below, copy it when JavaScript is available, or download the exact .py bytes.

  1. """DuckieDai Quartic Zero Tester for TI-84 Plus CE Python."""
  2. def duckiedai_intro(program_name, wait=True):
  3. title = program_name[:16]
  4. empty = 16 - len(title)
  5. left = empty // 2
  6. right = empty - left
  7. print("+----------------------+")
  8. print("| " + " " * left + title + " " * right + " |")
  9. print("| |")
  10. print("| __ |")
  11. print("| ___(o )> quack! |")
  12. print("| \\ <_. ) |")
  13. print("| `---' |")
  14. print("| by DuckieDai |")
  15. print("| hiddenwordscanner.com|")
  16. print("+----------------------+")
  17. print("Loading...")
  18. if wait:
  19. input("Press enter to start ")
  20. print("\n" * 8)
  21. def clear_screen():
  22. print("\n" * 8)
  23. def clean_num(n):
  24. if abs(n - round(n)) < 0.0000001:
  25. return int(round(n))
  26. return round(n, 6)
  27. def number(prompt):
  28. while True:
  29. try:
  30. text = input(prompt)
  31. if "/" in text:
  32. parts = text.split("/")
  33. if len(parts) != 2:
  34. raise ValueError
  35. top = float(parts[0])
  36. bottom = float(parts[1])
  37. if bottom == 0:
  38. print("Cannot divide by 0")
  39. continue
  40. return top / bottom
  41. return float(text)
  42. except ValueError:
  43. print("Enter a number")
  44. print("or fraction")
  45. def run_test():
  46. clear_screen()
  47. print("ENTER QUARTIC")
  48. print("ax^4+bx^3+cx^2")
  49. print("+dx+e")
  50. print("")
  51. a = number("x^4: ")
  52. b = number("x^3: ")
  53. c = number("x^2: ")
  54. d = number("x: ")
  55. e = number("Const: ")
  56. print("")
  57. zero = number("Test zero: ")
  58. first = a
  59. second = b + first * zero
  60. third = c + second * zero
  61. fourth = d + third * zero
  62. remainder = e + fourth * zero
  63. if abs(remainder) < 0.0000001:
  64. remainder = 0
  65. clear_screen()
  66. print("ZERO TEST")
  67. print("---------")
  68. print("Test:", clean_num(zero))
  69. print("R:", clean_num(remainder))
  70. print("")
  71. if remainder == 0:
  72. print("TRUE!")
  73. print("IT IS A ZERO")
  74. else:
  75. print("FALSE")
  76. print("NOT A ZERO")
  77. input("\nPress enter ")
  78. if remainder != 0:
  79. return
  80. clear_screen()
  81. print("CUBIC QUOTIENT")
  82. print("--------------")
  83. print(clean_num(first), "x^3")
  84. print(clean_num(second), "x^2")
  85. print(clean_num(third), "x")
  86. print(clean_num(fourth))
  87. print("")
  88. print("Use these in")
  89. print("Cubic Zero Tester")
  90. duckiedai_intro("Quartic Zero")
  91. while True:
  92. run_test()
  93. print("")
  94. again = input("Again? y/n: ")
  95. if again.lower() != "y":
  96. break
  97. clear_screen()
  98. print("DuckieDai says: done!")
Filename
P2Q4.py
Size
2795 bytes
SHA-256
ebe4f9aa0579d03039e96369063233fe100799f67e4b24014cc1058c6bf14e7c

Usage

Inputs

  • Quartic coefficients a, b, c, d, and e
  • Proposed zero, as a number or fraction

Outputs

  • Zero-test result and remainder
  • Cubic quotient coefficients when the remainder is zero

Units: Inputs represent a quartic polynomial a*x^4 + b*x^3 + c*x^2 + d*x + e.

Assumptions and limitations

Assumptions

  • Decimal remainders within 1E-7 display as zero.

Constraints

  • Fractions must have a nonzero denominator.

Known failures

  • Floating-point rounding can classify values close to zero differently than exact symbolic arithmetic.

Compatibility and review

Review status
Tested on a TI calculator
Tested on
Owner-tested TI-84 Plus CE Python calculator; exact branded .py transferred and launched individually
What happened
Passed: owner tested the exact 1.0.1 branded source bytes on a TI 84 Plus CE Python calculator.
Dependencies
No imports
Suggested calculator name
P2Q4 — 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 P2Q4 or another name, then open the Python App and try the worked example on this page first.

Full installation and troubleshooting guide. Check your teacher's or exam's rules before using any program.

Version history

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.