Hidden WordScanner
Private scans · No account required

DuckieDai Cubic Expander

Expand a monic cubic from its three zeros: enter r1, r2, and r3 and read the coefficients of x^3 + ax^2 + bx + c.

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

Expand a monic cubic from its three zeros: enter r1, r2, and r3 and read the coefficients of x^3 + ax^2 + bx + c.

  • Owner-tested on a TI calculator
  • Version 1.0.0
  • 701 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 leading coefficient is 1; multiply every coefficient by a afterwards for a different leading coefficient.
  • Zeros are real decimals; a complex zero cannot be entered.
  • Coefficients print as decimals, so a zero coefficient can show as -0.0.

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. def intro():
  2. print("+----------------------+")
  3. print("| Cubic Expand |")
  4. print("| |")
  5. print("| __ |")
  6. print("| ___(o )> quack! |")
  7. print("| \\ <_. ) |")
  8. print("| `---' |")
  9. print("| by DuckieDai |")
  10. print("| hiddenwordscanner.com|")
  11. print("+----------------------+")
  12. input("Press enter ")
  13. print("\n"*6)
  14. intro()
  15. r1=float(input("r1: "))
  16. r2=float(input("r2: "))
  17. r3=float(input("r3: "))
  18. a=-(r1+r2+r3)
  19. b=r1*r2+r1*r3+r2*r3
  20. c=-(r1*r2*r3)
  21. print()
  22. print("Standard form:")
  23. print("x^3")
  24. print(a,"x^2")
  25. print(b,"x")
  26. print(c)
  27. print()
  28. print("DuckieDai says:")
  29. print("done!")
Filename
cubexp.py
Size
701 bytes
SHA-256
c84dc00076d34ede72f31795acbffd439934b3c1dc147dac4c523a81e8d0e2d2

Usage

Inputs

  • Three real zeros r1, r2, and r3 as decimals

Outputs

  • The x^2 coefficient, the x coefficient, and the constant of the expanded cubic

Units: Polynomial zeros and coefficients; no physical units.

Assumptions and limitations

Assumptions

  • The leading coefficient is 1; multiply every coefficient by a afterwards for a different leading coefficient.

Constraints

  • Zeros are real decimals; a complex zero cannot be entered.
  • Coefficients print as decimals, so a zero coefficient can show as -0.0.

Known failures

  • Fractions typed with a slash are not accepted; enter a decimal.
  • Non-numeric 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
CUBEXP — 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. CUBEXP 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.