Hidden WordScanner
Private scans · No account required

DuckieDai Quadratic Factor Finder

Find an integer-binomial factorization of a quadratic expression or state when integer factoring is not available.

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

Find an integer-binomial factorization of a quadratic expression or state when integer factoring is not available.

  • Owner-tested on a TI calculator
  • Version 1.0.0
  • 2510 bytes
  • No imports

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
  • The expression is a quadratic with integer coefficients when a is nonzero.
  • This program searches integer-binomial factorizations; it is not a general quadratic solver.
  • Non-integer input uses the calculator Python input error path.

Try the DuckieDai calculator screen

Follow the program's prompts and result flow before downloading.

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.

Exact reviewed bytes

Source code

Download .py

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

  1. """DuckieDai Quadratic Factor 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("| 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 factors(n):
  24. vals = []
  25. n = abs(n)
  26. if n == 0:
  27. return [0]
  28. for i in range(1, n + 1):
  29. if n % i == 0:
  30. vals.append(i)
  31. vals.append(-i)
  32. return vals
  33. def run_solver():
  34. clear_screen()
  35. print("QUAD FACTOR")
  36. print("-----------")
  37. print("ax^2+bx+c")
  38. print("")
  39. a = int(input("a: "))
  40. b = int(input("b: "))
  41. c = int(input("c: "))
  42. if a == 0:
  43. clear_screen()
  44. print("NOT QUADRATIC")
  45. return
  46. found = False
  47. # Try (px + q)(rx + s)
  48. p_vals = factors(a)
  49. q_vals = factors(c)
  50. for p in p_vals:
  51. if p == 0:
  52. continue
  53. if a % p != 0:
  54. continue
  55. r = a // p
  56. for q in q_vals:
  57. if q == 0 and c != 0:
  58. continue
  59. if q == 0:
  60. s = 0
  61. else:
  62. if c % q != 0:
  63. continue
  64. s = c // q
  65. if p * s + q * r == b:
  66. clear_screen()
  67. print("FACTORS")
  68. print("-------")
  69. print("(" + str(p) + "x"
  70. + signed(q) + ")")
  71. print("(" + str(r) + "x"
  72. + signed(s) + ")")
  73. found = True
  74. return
  75. clear_screen()
  76. print("NO INTEGER")
  77. print("FACTORING")
  78. print("")
  79. print("Use P4QUAD")
  80. def signed(n):
  81. if n > 0:
  82. return "+" + str(n)
  83. elif n < 0:
  84. return str(n)
  85. else:
  86. return ""
  87. duckiedai_intro("Quad Factor")
  88. while True:
  89. run_solver()
  90. print("")
  91. again = input("Again? y/n: ")
  92. if again.lower() != "y":
  93. break
  94. clear_screen()
  95. print("DuckieDai says: done!")
Filename
quadFF.py
Size
2510 bytes
SHA-256
e902d813d8a241b19dcb4e1833cf59be039647eab025bff4da95fde8734ed09d

Usage

Inputs

  • Integer coefficients a, b, and c for ax^2 + bx + c

Outputs

  • Two integer-binomial factors when found
  • NOT QUADRATIC when a is zero
  • NO INTEGER FACTORING when no integer-binomial factorization is found

Units: Polynomial coefficients; no physical units.

Assumptions and limitations

Assumptions

  • The expression is a quadratic with integer coefficients when a is nonzero.

Constraints

  • This program searches integer-binomial factorizations; it is not a general quadratic solver.

Known failures

  • Non-integer 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
QUADFF — 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

  1. Confirm that your calculator is the Python-capable model named above. This release has no verified calculator OS or Python App version; treat transfer and execution as unverified until independently tested.
  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. QUADFF 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.

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.