Exact index of refraction