With frequency fixed, three training constants show photon energy moving into and out of a line gap. Exact arithmetic here means exact results for the stated model inputs; measured inputs still carry uncertainty and significant-figure limits.
highlighted = computed this step
Half-sized h undershoots the gap
The frequency stays 5 hertz and the line gap stays 5 joules. With h=1/2 J/Hz, the photon energy is 5/2 joules, so matched is 0.
E=hf=1/2⋅5=5/2Jgap=5J,matched=0
Unit h closes the gap
The frequency stays 5 hertz and the line gap stays 5 joules. With h=1 J/Hz, the photon energy is 5 joules, so matched is 1.
E=hf=1⋅5=5Jgap=5J,matched=1
Double h overshoots the gap
The frequency stays 5 hertz and the line gap stays 5 joules. With h=2 J/Hz, the photon energy is 10 joules, so matched is 0.