Hidden WordScanner
Private scans · No account required

DuckieDai Rational Zero Finder

List possible rational zeros from a polynomial's constant and leading coefficients using the Rational Root Theorem.

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

List possible rational zeros from a polynomial's constant and leading coefficients using the Rational Root Theorem.

Usage

Inputs

  • Constant coefficient
  • Leading coefficient

Outputs

  • Unique positive rational-factor pairs; use plus or minus for each candidate

Units: Coefficients are integers.

Assumptions and limitations

Assumptions

  • The program lists candidates, not confirmed roots.

Constraints

  • The leading coefficient cannot be zero.

Known failures

  • A zero constant produces no plus/minus factor list; treat zero as a root separately.

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 Rational Root Theorem candidate workflow.
Dependencies
No imports
Suggested calculator name
P1RZERO — 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 Rational Zero Finder 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" * 6)
  20. def gcd(a, b):
  21. while b != 0:
  22. a, b = b, a % b
  23. return a
  24. duckiedai_intro("Rational Zeros")
  25. constant = int(input("Constant: "))
  26. lead = int(input("Leading coeff: "))
  27. if constant < 0:
  28. constant = -constant
  29. if lead < 0:
  30. lead = -lead
  31. p_factors = []
  32. q_factors = []
  33. for i in range(1, constant + 1):
  34. if constant % i == 0:
  35. p_factors.append(i)
  36. for i in range(1, lead + 1):
  37. if lead % i == 0:
  38. q_factors.append(i)
  39. zeros = []
  40. for p in p_factors:
  41. for q in q_factors:
  42. g = gcd(p, q)
  43. num = p // g
  44. den = q // g
  45. pair = (num, den)
  46. if pair not in zeros:
  47. zeros.append(pair)
  48. print()
  49. print("Possible zeros:")
  50. print("Use +/-")
  51. count = 0
  52. for pair in zeros:
  53. num = pair[0]
  54. den = pair[1]
  55. if den == 1:
  56. print("+/-", num)
  57. else:
  58. print("+/-", str(num) + "/" + str(den))
  59. count += 1
  60. if count % 5 == 0:
  61. if count < len(zeros):
  62. input("Enter for more ")
  63. print()
  64. print("DuckieDai says: done!")
Filename
P1RZERO.py
Size
1719 bytes
SHA-256
d087b92e21265301381c5230fd135597741945ea0319d2f0c857dff9f94d07dd

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. P1RZERO 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.