Finish calc_power_spectrum.