Implement real formula for wavelength shift.