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.

chemistry · MIT License

Overview

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

  • Not calculator tested
  • Downloaded 34 times
  • Version 1.0.0
  • 2716 bytes
  • Uses math

Before you run it

  • TI-84 Plus CE Python · No calculator OS or Python App version has been verified.
  • TI Connect CE .py transfer is the intended path; calculator OS, Python App, transfer, and execution have not yet been tested for this release
  • 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.
  • Physical magnitudes and quantum numbers are positive; transition levels must differ; the emission-only mode requires upper n greater than lower n.

Try the DuckieDai calculator screen

Follow the same opening, solve menu, prompts, validation, and result flow as the downloadable program.

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.

Learn the math

How de Broglie wavelength and hydrogen transitions work

The idea

Moving particles behave like waves, with a wavelength that gets shorter as momentum rises. For everyday objects the wavelength is far too small to notice; for electrons it is comparable to the size of an atom.

Electrons in a hydrogen-like atom can only have certain energies. Jumping between levels emits or absorbs light of a specific wavelength, given by the Rydberg formula.

The formula

lambda = h/(m*v) = h/p

1/lambda = R*Z^2*(1/n1^2 - 1/n2^2)

lambda
wavelength
h
Planck's constant, 6.626 x 10^-34 J*s, built in
m, v, p
mass (kg), velocity (m/s), and momentum (kg*m/s)
n1, n2
the lower and upper energy levels

Using the program

Worked example

An electron (9.109 x 10^-31 kg) moves at 2.2 x 10^6 m/s. Choose 1 and enter 9.109e-31 and 2.2e6.

lambda = 6.626e-34/(9.109e-31 x 2.2e6)

The program shows lambda nm = 0.3306 (it prints more decimal places), about the size of an atom.

Tips and common mistakes

Where this comes up

It covers the atomic structure and quantum unit of general chemistry and the modern physics unit of physics: line spectra, the Bohr model, and matter waves.

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

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.

Transfer and launch

Download the .py file, send it to your calculator with TI Connect CE as DWAVE or another name, then open the Python App and try the worked example on this page first. This release has no verified calculator OS or Python App version; treat transfer and execution as unverified until independently tested.

Full installation and troubleshooting guide. Check your teacher's or exam's rules before using any program.

Version history

Did a DuckieDai program help with your homework? Every program here is free. If you would like to say thanks, you can leave a tip on Cash App ($duckiedai214) or read what tips pay for.

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, and so does a Yes or No answer about whether the program worked. Your browser notes that you answered; that note is never sent to the site. No entered values, source text, IP address, account, cookie, device identifier, or fingerprint is stored with these counts.