Hidden WordScanner
Private scans · No account required

DuckieDai Fraction Simplifier

Reduce an integer fraction to lowest terms and normalize a negative denominator.

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.

rational-functions · MIT License

Overview

Reduce an integer fraction to lowest terms and normalize a negative denominator.

Calculator simulation

Try the DuckieDai calculator screen

Follow the reviewed program prompts and calculation flow before downloading.

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.

Usage

Inputs

  • Integer numerator
  • Nonzero integer denominator

Outputs

  • Fraction in lowest terms

Units: Integers; no physical units.

Assumptions and limitations

Assumptions

  • Inputs represent a fraction.

Constraints

  • The denominator cannot be zero.

Known failures

  • Non-integer input is rejected by the calculator conversion.

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 personally tested the exact Fraction Simplifier program on a TI 84 Plus CE Python calculator.
Dependencies
No imports
Suggested calculator name
FRCSIM — 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.

Exact reviewed bytes

Source code

Download .py

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

  1. """DuckieDai Fraction Simplifier for TI-84 Plus CE Python."""
  2. def duckiedai_intro(program_name, wait=True):
  3. title=program_name[:16]; empty=16-len(title); left=empty//2; right=empty-left
  4. print("+----------------------+"); print("| "+" "*left+title+" "*right+" |"); print("| |"); print("| __ |"); print("| ___(o )> quack! |"); print("| \\ <_. ) |"); print("| `---' |"); print("| by DuckieDai |"); print("+----------------------+"); print("Loading...")
  5. if wait: input("Press enter to start "); print("\n"*8)
  6. def clear_screen(): print("\n"*8)
  7. def gcd(a,b):
  8. a=abs(a); b=abs(b)
  9. while b!=0: a,b=b,a%b
  10. return a
  11. def run_solver():
  12. clear_screen(); print("FRACTION SIMPLIFY"); print("-----------------"); print("")
  13. top=int(input("Numerator: ")); bottom=int(input("Denominator: "))
  14. if bottom==0: clear_screen(); print("INVALID"); print("Denominator"); print("cannot be 0"); return
  15. if bottom<0: top=-top; bottom=-bottom
  16. common=gcd(top,bottom); top//=common; bottom//=common
  17. clear_screen(); print("SIMPLIFIED"); print("----------"); print(top if bottom==1 else str(top)+"/"+str(bottom))
  18. duckiedai_intro("Fraction Simpl")
  19. while True:
  20. run_solver(); print("")
  21. if input("Again? y/n: ").lower()!="y": break
  22. clear_screen(); print("DuckieDai says: done!")
Filename
FRCSIM.py
Size
1373 bytes
SHA-256
0171deb2669e9b8c8d0cd2bc2ac46ca48ad63f4f913e5214a6bb81af044da301

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