Microscopic calculation of the longitudinal response of nuclear matter