Calculates the gap between two consecutive longitudinal modes of a laser cavity as a function of the cavity length.