Hidden WordScanner
Private scans · No account required

DuckieDai Quantum Wavelength and Hydrogenic Transitions

Calculate de Broglie wavelength or momentum, a nonrelativistic electron wavelength, and hydrogenic Rydberg wavelengths and transition information.

Version 1.0.0 · Not calculator tested

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

chemistry · MIT License

Overview

Calculate de Broglie wavelength or momentum, a nonrelativistic electron wavelength, and hydrogenic Rydberg wavelengths and transition information.

Usage

Inputs

  • Mass and speed, momentum, wavelength, or electron accelerating voltage
  • Atomic number and principal quantum levels for hydrogenic transitions

Outputs

  • Wavelength in metres, nanometres, and picometres
  • Momentum; or transition direction, photon frequency, and photon energy

Units: SI units are used for mass, speed, momentum, voltage, wavelength, frequency, and energy; entered nm or pm are explicitly converted.

Assumptions and limitations

Assumptions

  • p = m*v and the voltage relation are nonrelativistic.
  • The Rydberg modes apply to hydrogen and one-electron hydrogen-like ions using the stated constant.

Constraints

  • Physical magnitudes and quantum numbers are positive; transition levels must differ; the emission-only mode requires upper n greater than lower n.

Known failures

  • Multi-electron atoms are not described by the Z-squared hydrogenic formula.
  • High accelerating voltage requires a relativistic wavelength correction.

Compatibility and review

Review status
Not calculator tested
Tested on
The owner reports personally testing the supplied archive programs on a calculator; exact model, OS, and Python App versions were not recorded
What happened
Owner reported interactive testing is disclosed, but the published bytes are not labeled independently calculator tested because the environment is unrecorded and Arrhenius received a narrow intake correction
Dependencies
math
Suggested calculator name
DWAVE — 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 same opening, solve menu, prompts, validation, and result flow as the downloadable program.

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. from math import sqrt
  2. h=6.62607015e-34
  3. light=299792458
  4. me=9.1093837e-31
  5. charge=1.602176634e-19
  6. R=1.0973731568e7
  7. def duckiedai_intro(program_name,wait=True):
  8. title=program_name[:16]
  9. empty=16-len(title)
  10. left=empty//2
  11. right=empty-left
  12. print("+----------------------+")
  13. print("| "+" "*left+title+" "*right+" |")
  14. print("| |")
  15. print("| __ |")
  16. print("| ___(o )> quack! |")
  17. print("| \\ <_. ) |")
  18. print("| `---' |")
  19. print("| by DuckieDai |")
  20. print("+----------------------+")
  21. print("Loading...")
  22. if wait:
  23. input("Press enter to start ")
  24. print("\n"*6)
  25. def pos(s):
  26. while 1:
  27. try:
  28. x=float(input(s))
  29. if x>0:return x
  30. except:pass
  31. print("Enter a positive #")
  32. def whole(s):
  33. while 1:
  34. try:
  35. x=int(input(s))
  36. if x>0:return x
  37. except:pass
  38. print("Enter a whole #")
  39. def menu(s,top):
  40. while 1:
  41. try:
  42. x=int(input(s))
  43. if x>0 and x<=top:return x
  44. except:pass
  45. print("Invalid choice")
  46. def wave(w):
  47. print("lambda m =",w)
  48. print("lambda nm =",w*1e9)
  49. print("lambda pm =",w*1e12)
  50. def photon(w):
  51. f=light/w
  52. e=h*f
  53. print("Frequency Hz =",f)
  54. print("Energy J =",e)
  55. print("Energy eV =",e/charge)
  56. duckiedai_intro("QUANTUM WAVE")
  57. print("QUANTUM WAVELENGTH")
  58. print("1 lambda from m,v")
  59. print("2 lambda from p")
  60. print("3 Find momentum")
  61. print("4 Electron voltage")
  62. print("5 Rydberg lambda")
  63. print("6 Transition info")
  64. c=menu("Choose 1-6: ",6)
  65. if c==1:
  66. m=pos("Mass kg: ")
  67. v=pos("Velocity m/s: ")
  68. p=m*v
  69. wave(h/p)
  70. print("p kg*m/s =",p)
  71. elif c==2:
  72. p=pos("Momentum kg*m/s: ")
  73. wave(h/p)
  74. elif c==3:
  75. print("1 meters 2 nm 3 pm")
  76. u=menu("Choose unit: ",3)
  77. w=pos("lambda: ")
  78. if u==2:w=w*1e-9
  79. elif u==3:w=w*1e-12
  80. print("p kg*m/s =",h/w)
  81. elif c==4:
  82. v=pos("Voltage V: ")
  83. p=sqrt(2*me*charge*v)
  84. wave(h/p)
  85. print("p kg*m/s =",p)
  86. if v>10000:print("High V: relativity matters")
  87. elif c==5:
  88. z=whole("Atomic Z: ")
  89. n1=whole("Lower n1: ")
  90. n2=whole("Upper n2: ")
  91. if n2<=n1:print("n2 must exceed n1")
  92. else:
  93. w=1/(R*z**2*(1/n1**2-1/n2**2))
  94. wave(w)
  95. photon(w)
  96. else:
  97. z=whole("Atomic Z: ")
  98. n1=whole("Initial n: ")
  99. n2=whole("Final n: ")
  100. if n1==n2:print("No transition")
  101. else:
  102. w=1/(R*z**2*abs(1/n2**2-1/n1**2))
  103. if n1>n2:print("EMISSION")
  104. else:print("ABSORPTION")
  105. print("n",n1,"to",n2)
  106. wave(w)
  107. photon(w)
  108. if z==1:
  109. low=min(n1,n2)
  110. if low==1:print("Lyman: UV")
  111. elif low==2:print("Balmer: visible")
  112. elif low==3:print("Paschen: infrared")
  113. else:print("Higher H series")
  114. input("ENTER for guide: ")
  115. print("QUICK GUIDE")
  116. print("lambda=h/p")
  117. print("More p: shorter lambda")
  118. print("High n to low n: emit")
  119. print("Low n to high n: absorb")
  120. print("DuckieDai: done!")
  121. input("ENTER to exit: ")
Filename
dWAVE.py
Size
2716 bytes
SHA-256
8238d675998a4041554d4d58d2c8d3641dc07972c2f8b7a6287494f809419f0a

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