Hidden WordScanner
Private scans · No account required

DuckieDai Cubic Zero Tester

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

Version 1.0.0 · Tested on a TI calculator

← Back to Calculator Program Library

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. No entered values, source text, IP address, account, cookie, device identifier, or fingerprint is stored with these counts.

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

Usage

Inputs

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

Outputs

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

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

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
Creator-owned TI-84 Plus CE Python calculator; exact .py transferred and launched individually
What happened
Passed: creator tested the exact program on a personal TI 84 Plus CE Python calculator and confirmed the cubic zero test and quadratic quotient workflow.
Dependencies
No imports
Suggested calculator name
P3Q3 — 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.

Browser preview

Try the DuckieDai calculator screen

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

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.

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

Exact reviewed bytes

Source code

Download .py

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

  1. """DuckieDai Cubic 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("+----------------------+")
  16. print("Loading...")
  17. if wait:
  18. input("Press enter to start ")
  19. print("\n" * 8)
  20. def clear_screen():
  21. print("\n" * 8)
  22. def clean_num(n):
  23. if abs(n - round(n)) < 0.0000001:
  24. return int(round(n))
  25. return round(n, 6)
  26. def number(prompt):
  27. while True:
  28. try:
  29. text = input(prompt)
  30. if "/" in text:
  31. parts = text.split("/")
  32. if len(parts) != 2:
  33. raise ValueError
  34. top = float(parts[0])
  35. bottom = float(parts[1])
  36. if bottom == 0:
  37. print("Cannot divide by 0")
  38. continue
  39. return top / bottom
  40. return float(text)
  41. except ValueError:
  42. print("Enter a number")
  43. print("or fraction")
  44. def run_test():
  45. clear_screen()
  46. print("ENTER CUBIC")
  47. print("ax^3+bx^2+cx+d")
  48. print("")
  49. a = number("x^3: ")
  50. b = number("x^2: ")
  51. c = number("x: ")
  52. d = number("Const: ")
  53. print("")
  54. zero = number("Test zero: ")
  55. first = a
  56. second = b + first * zero
  57. third = c + second * zero
  58. remainder = d + third * zero
  59. if abs(remainder) < 0.0000001:
  60. remainder = 0
  61. clear_screen()
  62. print("ZERO TEST")
  63. print("---------")
  64. print("Test:", clean_num(zero))
  65. print("R:", clean_num(remainder))
  66. print("")
  67. if remainder == 0:
  68. print("TRUE!")
  69. print("IT IS A ZERO")
  70. else:
  71. print("FALSE")
  72. print("NOT A ZERO")
  73. input("\nPress enter ")
  74. if remainder != 0:
  75. return
  76. clear_screen()
  77. print("QUOTIENT")
  78. print("--------")
  79. print(clean_num(first), "x^2")
  80. print(clean_num(second), "x")
  81. print(clean_num(third))
  82. print("")
  83. print("Use these in")
  84. print("Quadratic Solver")
  85. duckiedai_intro("Cubic Zero")
  86. while True:
  87. run_test()
  88. print("")
  89. again = input("Again? y/n: ")
  90. if again.lower() != "y":
  91. break
  92. clear_screen()
  93. print("DuckieDai says: done!")
Filename
P3Q3.py
Size
2628 bytes
SHA-256
105185624809000d9618ba5178f1a15676b451675805090e877cdcae804bc9b2

Transfer and launch

  1. Confirm that your calculator is the Python-capable model named above. Check that its OS and Python App versions match the reviewed record.
  2. Download the .py source above and verify its SHA-256 digest if your computer provides that option.
  3. Use TI Connect CE to send the Python file to a compatible calculator. P3Q3 is a suggested name; you may choose another valid, unique calculator name.
  4. Open the Python App, select the program, and check sample inputs before relying on other results.

Read the complete installation, launch, troubleshooting, and removal guide.

Availability does not mean a teacher, school, or exam permits this program. Follow the applicable rules.

Version history

Any source change requires a new immutable version and digest. Historical downloads remain available only while their review records remain valid.