On a machine slower than the one timed in this chapter
PHYSICS · Multi-part · Fermi University Physics · Computational Physics · Scientific programming for physicists · Scientific programming for physicists
Computational Physics, Ch Spectra of sampled signals
Problem
On a machine slower than the one timed in this chapter, the direct sum y~k=∑nyne−2πikn/N takes 8.5ms for a record of N=256 samples and 0.136s for N=1024. The library's fast transform, on the same machine, takes 12μs at N=1024 and 56μs at N=4096.
((a)) Fit a power law t∝Nα to each pair of timings and give the two exponents.
((b)) Predict from its fitted law how long the direct sum takes at N=4096.
((c)) Extrapolate the same law to N=106 and give the direct sum's time there in hours.