It is not out of reach to compute Eq. 3 for $N=2^{23} - 1$ and $n \in {5, 7},$ as parameterized in the question, using something like Python's mpmath
. Let's try that but with a 16-bit sine wave first:
I'm only reporting as many digits as are agreed about by repeated computation using two different mpmath
precision settings, including also the digits that got changed by $\pm1$ due to larger changes in later digits. For a 16-bit full-scale $N = 2^{15}-1$ sine wave and $N=2^{23} - 1$$f/f_s \to 0$, the result is -154.66449 dBFS for the 5th harmonic and, after setting n = 7
in the script, -154.66506 dBFS for the 7th harmonic, in about 15 seconds of computation on my PC for a single result with the higher precision setting. As a sanity check, I also computed the the amplitude of the 1st harmonic is, which is interestingly, 0.0000001605530 dBFS, compared to the peak value $2^{15}-1$ at 0 dBFS. I think the rounding at the top of the sine wave is "pulling it up", giving it a higher amplitude of the fundamental.
After a total of a few hours of computation on my PC, the result is that with $N=2^{23} - 1$ and $f/f_s \to 0,$ the amplitude of the 5th harmonic is -226.91150085 dBFS and the amplitude of the 7th harmonic is -226.9115030 dBFS. Apparently, the amplitudes decay extremely slowly as function of harmonic number. I also computed the amplitude of the 1st harmonic, which is in the order of 4E-11 dBFS.