Hidden WordScanner
Private scans · No account required

DuckieDai Radical Simplifier

Simplify a non-negative integer square root by extracting repeated square factors.

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

Simplify a non-negative integer square root by extracting repeated square factors.

Usage

Inputs

  • Non-negative integer under the square root

Outputs

  • Simplified radical or perfect-square result

Units: The input is a non-negative integer.

Assumptions and limitations

Assumptions

  • The program simplifies real square roots only.

Constraints

  • Negative radicands are rejected.

Known failures

  • Decimal input is not accepted because the calculator source uses integer input.

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 perfect square, already simple, and simplified radical workflows.
Dependencies
No imports
Suggested calculator name
P5RAD — 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 Radical Simplifier 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 simplify_radical(n):
  23. outside = 1
  24. inside = n
  25. factor = 2
  26. while factor * factor <= inside:
  27. square = factor * factor
  28. while inside % square == 0:
  29. outside *= factor
  30. inside //= square
  31. factor += 1
  32. return outside, inside
  33. def run_solver():
  34. clear_screen()
  35. print("RADICAL SIMPLIFIER")
  36. print("------------------")
  37. print("Enter number under")
  38. print("the square root.")
  39. print("")
  40. n = int(input("sqrt: "))
  41. if n < 0:
  42. clear_screen()
  43. print("NEGATIVE RADICAL")
  44. print("Use positive")
  45. print("number only.")
  46. return
  47. outside, inside = simplify_radical(n)
  48. clear_screen()
  49. print("RESULT")
  50. print("------")
  51. if n == 0:
  52. print("sqrt(0) = 0")
  53. elif inside == 1:
  54. print("Perfect square!")
  55. print("")
  56. print("sqrt(", n, ") =")
  57. print(outside)
  58. elif outside == 1:
  59. print("Already simple:")
  60. print("")
  61. print("sqrt(", inside, ")")
  62. else:
  63. print("sqrt(", n, ") =")
  64. print("")
  65. print(outside, "* sqrt(", inside, ")")
  66. duckiedai_intro("Radical Simpl")
  67. while True:
  68. run_solver()
  69. print("")
  70. again = input("Again? y/n: ")
  71. if again.lower() != "y":
  72. break
  73. clear_screen()
  74. print("DuckieDai says: done!")
Filename
P5RAD.py
Size
2078 bytes
SHA-256
81261a2e536f46b6eab215b00ccb4b36086f465172f2817452708a24cb6e3d5a

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