Hidden WordScanner
Private scans · No account required

DuckieDai Newton's Second Law

Solve force, mass, or acceleration from F = m*a with validated calculator inputs.

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.

physics · MIT License

Overview

Solve force, mass, or acceleration from F = m*a with validated calculator inputs.

Usage

Inputs

  • Requested unknown: force, mass, or acceleration
  • Two known values in compatible SI units

Outputs

  • Force in newtons, mass in kilograms, or acceleration in metres per second squared

Units: Use kilograms, metres per second squared, and newtons consistently.

Assumptions and limitations

Assumptions

  • Force means net force and mass remains constant.

Constraints

  • Mass must be positive and acceleration cannot be zero when solving for mass.

Known failures

  • Supplying a single component of force without matching component acceleration gives the wrong interpretation.

Compatibility and review

Review status
Tested on a TI calculator
Tested on
TI-84 Plus CE Python; OS 5.8.3; Python App 5.8.3.0048; exact paginated .py transferred through TI Connect CE into RAM and tested individually
What happened
Passed: branded intro, force/mass/acceleration selection, input validation, formula display, and labelled answer ran on the physical calculator
Dependencies
No imports
Suggested calculator name
NEWTON2 — 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

Follow the reviewed program's real menu, prompts, validation, calculation, and result 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.

Exact reviewed bytes

Source code

Download .py

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

  1. """DuckieDai Newton's Second Law for TI-84 Plus CE Python."""
  2. def duckiedai_intro(program_name, wait=True):
  3. """Show the small, reusable DuckieDai program opening."""
  4. title = program_name[:16]
  5. empty = 16 - len(title)
  6. left = empty // 2
  7. right = empty - left
  8. print("+----------------------+")
  9. print("| " + " " * left + title + " " * right + " |")
  10. print("| |")
  11. print("| __ |")
  12. print("| ___(o )> quack! |")
  13. print("| \\ <_. ) |")
  14. print("| `---' |")
  15. print("| by DuckieDai |")
  16. print("+----------------------+")
  17. print("Loading...")
  18. if wait:
  19. input("Press enter to start ")
  20. print("\n" * 6)
  21. def number(prompt):
  22. """Ask until the user supplies a valid number."""
  23. while True:
  24. try:
  25. value = float(input(prompt))
  26. if value > -1e100 and value < 1e100:
  27. return value
  28. except ValueError:
  29. pass
  30. print("Enter a valid number.")
  31. def positive_number(prompt):
  32. """Ask until the user supplies a number above zero."""
  33. while True:
  34. try:
  35. value = float(input(prompt))
  36. if value > 0 and value < 1e100:
  37. return value
  38. except ValueError:
  39. pass
  40. print("Enter a number above 0.")
  41. def main():
  42. duckiedai_intro("NEWTON 2ND LAW")
  43. print("NEWTON'S SECOND LAW")
  44. print()
  45. print("Formula: F = m*a")
  46. print()
  47. print("1. Solve for Force")
  48. print("2. Solve for Mass")
  49. print("3. Solve for Acceleration")
  50. print()
  51. choice = input("Choose 1, 2, or 3: ")
  52. print()
  53. if choice == "1":
  54. mass = positive_number("Mass (kg): ")
  55. acceleration = number("Acceleration (m/s^2): ")
  56. force = mass * acceleration
  57. print()
  58. print("F = m*a")
  59. print("F = " + str(mass) + " x " +
  60. str(acceleration))
  61. print()
  62. print("Force = " + str(force) + " N")
  63. elif choice == "2":
  64. force = number("Net force (N): ")
  65. acceleration = number("Acceleration (m/s^2): ")
  66. if acceleration == 0:
  67. print()
  68. print("Acceleration cannot")
  69. print("be zero when solving")
  70. print("for mass.")
  71. else:
  72. mass = force / acceleration
  73. print()
  74. print("m = F/a")
  75. print("m = " + str(force) + " / " +
  76. str(acceleration))
  77. print()
  78. print("Mass = " + str(mass) + " kg")
  79. elif choice == "3":
  80. force = number("Net force (N): ")
  81. mass = positive_number("Mass (kg): ")
  82. acceleration = force / mass
  83. print()
  84. print("a = F/m")
  85. print("a = " + str(force) + " / " +
  86. str(mass))
  87. print()
  88. print("Acceleration =")
  89. print(str(acceleration) + " m/s^2")
  90. else:
  91. print("Invalid choice.")
  92. print()
  93. print("DuckieDai says: done!")
  94. # TI-Python imports the selected AppVar rather than
  95. # setting __name__ to main.
  96. main()
Filename
NEWTON2.py
Size
3236 bytes
SHA-256
5847ab4dc50c6ce889c2b25f7a46605e36b4ffe11ef6eb3427e6d01b04331a07

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