calculation for wave number of spectral lines