Digital computation of frequency response