dispersion relation calculation