← 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.
TI-84 Plus CE Python · screen preview
JavaScript is required for the optional browser simulation. Source viewing and downloading remain available without it.
Exact reviewed bytes
Source code
from math import sqrth=6.62607015e-34light=299792458me=9.1093837e-31charge=1.602176634e-19R=1.0973731568e7def duckiedai_intro(program_name,wait=True):title=program_name[:16]empty=16-len(title)left=empty//2right=empty-leftprint("+----------------------+")print("| "+" "*left+title+" "*right+" |")print("| |")print("| __ |")print("| ___(o )> quack! |")print("| \\ <_. ) |")print("| `---' |")print("| by DuckieDai |")print("+----------------------+")print("Loading...")if wait:input("Press enter to start ")print("\n"*6)def pos(s):while 1:try:x=float(input(s))if x>0:return xexcept:passprint("Enter a positive #")def whole(s):while 1:try:x=int(input(s))if x>0:return xexcept:passprint("Enter a whole #")def menu(s,top):while 1:try:x=int(input(s))if x>0 and x<=top:return xexcept:passprint("Invalid choice")def wave(w):print("lambda m =",w)print("lambda nm =",w*1e9)print("lambda pm =",w*1e12)def photon(w):f=light/we=h*fprint("Frequency Hz =",f)print("Energy J =",e)print("Energy eV =",e/charge)duckiedai_intro("QUANTUM WAVE")print("QUANTUM WAVELENGTH")print("1 lambda from m,v")print("2 lambda from p")print("3 Find momentum")print("4 Electron voltage")print("5 Rydberg lambda")print("6 Transition info")c=menu("Choose 1-6: ",6)if c==1:m=pos("Mass kg: ")v=pos("Velocity m/s: ")p=m*vwave(h/p)print("p kg*m/s =",p)elif c==2:p=pos("Momentum kg*m/s: ")wave(h/p)elif c==3:print("1 meters 2 nm 3 pm")u=menu("Choose unit: ",3)w=pos("lambda: ")if u==2:w=w*1e-9elif u==3:w=w*1e-12print("p kg*m/s =",h/w)elif c==4:v=pos("Voltage V: ")p=sqrt(2*me*charge*v)wave(h/p)print("p kg*m/s =",p)if v>10000:print("High V: relativity matters")elif c==5:z=whole("Atomic Z: ")n1=whole("Lower n1: ")n2=whole("Upper n2: ")if n2<=n1:print("n2 must exceed n1")else:w=1/(R*z**2*(1/n1**2-1/n2**2))wave(w)photon(w)else:z=whole("Atomic Z: ")n1=whole("Initial n: ")n2=whole("Final n: ")if n1==n2:print("No transition")else:w=1/(R*z**2*abs(1/n2**2-1/n1**2))if n1>n2:print("EMISSION")else:print("ABSORPTION")print("n",n1,"to",n2)wave(w)photon(w)if z==1:low=min(n1,n2)if low==1:print("Lyman: UV")elif low==2:print("Balmer: visible")elif low==3:print("Paschen: infrared")else:print("Higher H series")input("ENTER for guide: ")print("QUICK GUIDE")print("lambda=h/p")print("More p: shorter lambda")print("High n to low n: emit")print("Low n to high n: absorb")print("DuckieDai: done!")input("ENTER to exit: ")
- Filename
dWAVE.py- Size
- 2716 bytes
- SHA-256
8238d675998a4041554d4d58d2c8d3641dc07972c2f8b7a6287494f809419f0a
Transfer and launch
- 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.
- Download the
.pysource above and verify its SHA-256 digest if your computer provides that option. - Use TI Connect CE to send the Python file to a compatible calculator.
DWAVEis a suggested name; you may choose another valid, unique calculator name. - 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
- 1.0.0 — current version, published . Download this reviewed version
Any source change requires a new immutable version and digest. Historical downloads remain available only while their review records remain valid.