The Riemann zeta function and tuning: Difference between revisions

ArrowHead294 (talk | contribs)
No edit summary
ArrowHead294 (talk | contribs)
No edit summary
Line 14: Line 14:
== Gene Smith's original derivation ==
== Gene Smith's original derivation ==
=== Preliminaries ===
=== Preliminaries ===
Suppose ''x'' is a variable representing some equal division of the octave. For example, if {{nowrap|''x'' = 80}}, ''x'' reflects 80edo with a step size of 15 cents and with pure octaves. Suppose that ''x'' can also be continuous, so that it can also represent fractional or "nonoctave" divisions as well. The [[Bohlen-Pierce|Bohlen-Pierce scale]], 13 equal divisions of 3/1, is approximately 8.202 equal divisions of the "octave" (although the octave itself does not appear in this tuning), and would hence be represented by a value of {{nowrap|''x'' = 8.202}}.
Suppose ''x'' is a variable representing some equal division of the octave. For example, if {{nowrap|''x'' {{=}} 80}}, ''x'' reflects 80edo with a step size of 15 cents and with pure octaves. Suppose that ''x'' can also be continuous, so that it can also represent fractional or "nonoctave" divisions as well. The [[Bohlen-Pierce|Bohlen-Pierce scale]], 13 equal divisions of 3/1, is approximately 8.202 equal divisions of the "octave" (although the octave itself does not appear in this tuning), and would hence be represented by a value of {{nowrap|''x'' {{=}} 8.202}}.


Now suppose that &#x230A;x&#x2309; denotes the difference between ''x'' and the integer nearest to ''x''. For example, &#x230A;8.202&#x2309; would be 0.202, since it's the difference between 8.202 and the nearest integer, which is 8. &#x230A;7.95&#x2309; would be 0.05, which is the difference between 7.95 and the nearest integer, which is 8. Mathematically speaking, <math>\rround{x} = \abs{x - \floor{x + \frac{1}{2}}}</math>.
Now suppose that &#x230A;x&#x2309; denotes the difference between ''x'' and the integer nearest to ''x''. For example, &#x230A;8.202&#x2309; would be 0.202, since it's the difference between 8.202 and the nearest integer, which is 8. &#x230A;7.95&#x2309; would be 0.05, which is the difference between 7.95 and the nearest integer, which is 8. Mathematically speaking, <math>\rround{x} = \abs{x - \floor{x + \frac{1}{2}}}</math>.
Line 55: Line 55:


=== Into the critical strip ===
=== Into the critical strip ===
So long as {{nowrap|''s'' &#x2264; 1}}, the absolute value of the zeta function can be seen as a relative error measurement. However, the rationale for that view of things departs when {{nowrap|''s'' < 1}}, particularly in the [http://mathworld.wolfram.com/CriticalStrip.html critical strip], when {{nowrap|0 < ''s'' < 1}}. As s approaches the value {{nowrap|''s'' = {{frac|2}}}} of the [http://mathworld.wolfram.com/CriticalLine.html critical line], the information content, so to speak, of the zeta function concerning higher primes increases and it behaves increasingly like a badness measure (or more correctly, since we have inverted it, like a goodness measure.) The quasi-symmetric [https://planetmath.org/encyclopedia/FunctionalEquationOfTheRiemannZetaFunction.html functional equation] of the zeta function tells us that past the critical line the information content starts to decrease again, with {{nowrap|1 &minus; ''s''}} and ''s'' having the same information content. Hence it is the zeta function between {{nowrap|''s'' = {{frac|2}}}} and {{nowrap|''s'' = 1}}, and especially the zeta function along the critical line {{nowrap|''s'' = {{frac|2}}}}, which is of the most interest.
So long as {{nowrap|''s'' &#x2264; 1}}, the absolute value of the zeta function can be seen as a relative error measurement. However, the rationale for that view of things departs when {{nowrap|''s'' < 1}}, particularly in the [http://mathworld.wolfram.com/CriticalStrip.html critical strip], when {{nowrap|0 < ''s'' < 1}}. As s approaches the value {{nowrap|''s'' {{=}} {{frac|2}}}} of the [http://mathworld.wolfram.com/CriticalLine.html critical line], the information content, so to speak, of the zeta function concerning higher primes increases and it behaves increasingly like a badness measure (or more correctly, since we have inverted it, like a goodness measure.) The quasi-symmetric [https://planetmath.org/encyclopedia/FunctionalEquationOfTheRiemannZetaFunction.html functional equation] of the zeta function tells us that past the critical line the information content starts to decrease again, with {{nowrap|1 &minus; ''s''}} and ''s'' having the same information content. Hence it is the zeta function between {{nowrap|''s'' {{=}} {{frac|1|2}}}} and {{nowrap|''s'' {{=}} 1}}, and especially the zeta function along the critical line {{nowrap|''s'' {{=}} {{frac|1|2}}}}, which is of the most interest.


As {{nowrap|''s'' > 1}} gets larger, the Dirichlet series for the zeta function is increasingly dominated by the 2 term, getting ever closer to simply {{nowrap|1 + 2<sup>&minus;''z''</sup>}}, which approaches 1 as {{nowrap|''s'' = Re(''z'')}} becomes larger. When {{nowrap|''s'' >> 1}} and ''x'' is an integer, the real part of zeta is approximately {{nowrap|1 + 2<sup>&minus;''s''</sup>}}, and the imaginary part is approximately zero; that is, zeta is approximately real. Starting from {{nowrap|''s'' = +&infin;}} with ''x'' an integer, we can trace a line back towards the critical strip on which zeta is real. Since when {{nowrap|''s'' >> 1}} the derivative is approximately &minus;ln(2)/2<sup>''s''</sup>, it is negative on this line of real values for zeta, meaning that the real value for zeta increases as ''s'' decreases. The zeta function approaches 1 uniformly as ''s'' increases to infinity, so as ''s'' decreases, the real-valued zeta function along this line of real values continues to increase though all real values from 1 to infinity monotonically. When it crosses the critical line where {{nowrap|''s'' = {{frac|2}}}}, it produces a real value of zeta on the critical line. Points on the critical line where {{nowrap|&zeta;({{frac|2}} + i''g'')}} are real are called "Gram points", after [[Wikipedia:Jørgen Pedersen Gram|Jørgen Pedersen Gram]]. We thus have associated pure-octave edos, where ''x'' is an integer, to a value near to the pure octave, at the special sorts of Gram points which corresponds to edos.
As {{nowrap|''s'' > 1}} gets larger, the Dirichlet series for the zeta function is increasingly dominated by the 2 term, getting ever closer to simply {{nowrap|1 + 2<sup>&minus;''z''</sup>}}, which approaches 1 as {{nowrap|''s'' {{=}} Re(''z'')}} becomes larger. When {{nowrap|''s'' >> 1}} and ''x'' is an integer, the real part of zeta is approximately {{nowrap|1 + 2<sup>&minus;''s''</sup>}}, and the imaginary part is approximately zero; that is, zeta is approximately real. Starting from {{nowrap|''s'' {{=}} +&infin;}} with ''x'' an integer, we can trace a line back towards the critical strip on which zeta is real. Since when {{nowrap|''s'' >> 1}} the derivative is approximately &minus;ln(2)/2<sup>''s''</sup>, it is negative on this line of real values for zeta, meaning that the real value for zeta increases as ''s'' decreases. The zeta function approaches 1 uniformly as ''s'' increases to infinity, so as ''s'' decreases, the real-valued zeta function along this line of real values continues to increase though all real values from 1 to infinity monotonically. When it crosses the critical line where {{nowrap|''s'' {{=}} {{frac|2}}}}, it produces a real value of zeta on the critical line. Points on the critical line where {{nowrap|&zeta;({{frac|2}} + i''g'')}} are real are called "Gram points", after [[Wikipedia:Jørgen Pedersen Gram|Jørgen Pedersen Gram]]. We thus have associated pure-octave edos, where ''x'' is an integer, to a value near to the pure octave, at the special sorts of Gram points which corresponds to edos.


Because the value of zeta increased continuously as it made its way from +&infin; to the critical line, we might expect the values of zeta at these special Gram points to be relatively large. This would be especially true if &minus;&zeta;'(''z'') is getting a boost from other small primes as it travels toward the Gram point. A complex formula due to [[Wikipedia:Bernhard Riemann|Bernhard Riemann]] which he failed to publish because it was so nasty becomes a bit simpler when used at a Gram point. It is named the [[Wikipedia:Riemann-Siegel formula|Riemann-Siegel formula]] since [[Wikipedia:Carl Ludwig Siegel|Carl Ludwig Siegel]] went looking for it and was able to reconstruct it after rooting industriously around in Riemann's unpublished papers. From this formula, it is apparent that when x corresponds to a good edo, the value of {{nowrap|&zeta;({{frac|2}} + i''g'')}} at the corresponding Gram point should be especially large.
Because the value of zeta increased continuously as it made its way from +&infin; to the critical line, we might expect the values of zeta at these special Gram points to be relatively large. This would be especially true if &minus;&zeta;'(''z'') is getting a boost from other small primes as it travels toward the Gram point. A complex formula due to [[Wikipedia:Bernhard Riemann|Bernhard Riemann]] which he failed to publish because it was so nasty becomes a bit simpler when used at a Gram point. It is named the [[Wikipedia:Riemann-Siegel formula|Riemann-Siegel formula]] since [[Wikipedia:Carl Ludwig Siegel|Carl Ludwig Siegel]] went looking for it and was able to reconstruct it after rooting industriously around in Riemann's unpublished papers. From this formula, it is apparent that when x corresponds to a good edo, the value of {{nowrap|&zeta;({{frac|2}} + i''g'')}} at the corresponding Gram point should be especially large.
Line 86: Line 86:
Since &theta; is holomorphic on the strip with imaginary part between -1/2 and 1/2, so is Z. Since the exponential function has no zeros, the zeros of Z in this strip correspond one to one with the zeros of &zeta; in the critical strip. Since the exponential of an imaginary argument has absolute value 1, the absolute value of Z along the real axis is the same as the absolute value of &zeta; at the corresponding place on the critical line. And since theta was defined so as to give precisely this property, Z is a real even function of the real variable ''t''.
Since &theta; is holomorphic on the strip with imaginary part between -1/2 and 1/2, so is Z. Since the exponential function has no zeros, the zeros of Z in this strip correspond one to one with the zeros of &zeta; in the critical strip. Since the exponential of an imaginary argument has absolute value 1, the absolute value of Z along the real axis is the same as the absolute value of &zeta; at the corresponding place on the critical line. And since theta was defined so as to give precisely this property, Z is a real even function of the real variable ''t''.


Using the [http://functions.wolfram.com/webMathematica/FunctionPlotting.jsp?name=RiemannSiegelZ online plotter] we can plot Z in the regions corresponding to scale divisions, using the conversion factor {{nowrap|''t'' = 2π''x''/ln(2)}}, for ''x'' a number near or at an edo number. Hence, for instance, to plot 12 plot around 108.777, to plot 31 plot around 281.006, and so forth. An alternative plotter is the applet [http://web.viu.ca/pughg/RiemannZeta/RiemannZetaLong.html here].
Using the [http://functions.wolfram.com/webMathematica/FunctionPlotting.jsp?name=RiemannSiegelZ online plotter] we can plot Z in the regions corresponding to scale divisions, using the conversion factor {{nowrap|''t'' {{=}} 2π''x''/ln(2)}}, for ''x'' a number near or at an edo number. Hence, for instance, to plot 12 plot around 108.777, to plot 31 plot around 281.006, and so forth. An alternative plotter is the applet [http://web.viu.ca/pughg/RiemannZeta/RiemannZetaLong.html here].


If you have access to [[Wikipedia:Mathematica|Mathematica]], which has Z, zeta and theta as a part of its suite of initially defined functions, you can do even better. Below is a Mathematicia-generated plot of Z(2π''x''/ln(2)) in the region around 12edo:
If you have access to [[Wikipedia:Mathematica|Mathematica]], which has Z, zeta and theta as a part of its suite of initially defined functions, you can do even better. Below is a Mathematicia-generated plot of Z(2π''x''/ln(2)) in the region around 12edo:
Line 92: Line 92:
[[File:plot12.png|alt=plot12.png|plot12.png]]
[[File:plot12.png|alt=plot12.png|plot12.png]]


The peak around 12 is both higher and wider than the local maximums above 11 and 13, indicating its superiority as an edo. Note also that the peak occurs at a point slightly larger than 12; this indicates the octave is slightly compressed in the zeta tuning for 12. The size of a step in octaves is 1/''x'', and hence the size of the octave in the zeta peak value tuning for ''N''edo is ''N''/''x''; if ''x'' is slightly larger than ''N'' as here with {{nowrap|''N'' = 12}}, the size of the zeta tuned octave will be slightly less than a pure octave. Similarly, when the peak occurs with ''x'' less than ''N'', we have stretched octaves.
The peak around 12 is both higher and wider than the local maximums above 11 and 13, indicating its superiority as an edo. Note also that the peak occurs at a point slightly larger than 12; this indicates the octave is slightly compressed in the zeta tuning for 12. The size of a step in octaves is 1/''x'', and hence the size of the octave in the zeta peak value tuning for ''N''edo is ''N''/''x''; if ''x'' is slightly larger than ''N'' as here with {{nowrap|''N'' {{=}} 12}}, the size of the zeta tuned octave will be slightly less than a pure octave. Similarly, when the peak occurs with ''x'' less than ''N'', we have stretched octaves.


For larger edos, the width of the peak narrows, but for strong edos the height more than compensates, measured in terms of the area under the peak (the absolute value of the integral of Z between two zeros.) Note how 270 completely dominates its neighbors:
For larger edos, the width of the peak narrows, but for strong edos the height more than compensates, measured in terms of the area under the peak (the absolute value of the integral of Z between two zeros.) Note how 270 completely dominates its neighbors:
Line 98: Line 98:
[[File:plot270.png|alt=plot270.png|plot270.png]]
[[File:plot270.png|alt=plot270.png|plot270.png]]


Note that for one of its neighbors, 271, it isn't entirely clear which peak value corresponds to the line of real values from +∞. This can be determined by looking at the absolute value of zeta along other ''s'' values, such as {{nowrap|''s'' = 1}} or {{nowrap|''s'' = 3/4}}, and in this case the local minimum at 271.069 is the value in question. However, other peak values are not without their interest; the local maximum at 270.941, for instance, is associated to a different mapping for 3.
Note that for one of its neighbors, 271, it isn't entirely clear which peak value corresponds to the line of real values from +∞. This can be determined by looking at the absolute value of zeta along other ''s'' values, such as {{nowrap|''s'' {{=}} 1}} or {{nowrap|''s'' {{=}} 3/4}}, and in this case the local minimum at 271.069 is the value in question. However, other peak values are not without their interest; the local maximum at 270.941, for instance, is associated to a different mapping for 3.


To generate this plot using the free version of Wolfram Cloud, you can copy-paste '''Plot[Abs[RiemannSiegelZ[9.06472028x]], {x, 11.9,12.1}]''' and then in the menu select '''Evaluation > Evaluate Cells'''. Change "'''11.9'''" and "'''12.1'''" to whatever values you want, e.g. to view the curve around 15edo you might use the values "'''14.9'''" and "'''15.1'''".
To generate this plot using the free version of Wolfram Cloud, you can copy-paste '''Plot[Abs[RiemannSiegelZ[9.06472028x]], {x, 11.9,12.1}]''' and then in the menu select '''Evaluation > Evaluate Cells'''. Change "'''11.9'''" and "'''12.1'''" to whatever values you want, e.g. to view the curve around 15edo you might use the values "'''14.9'''" and "'''15.1'''".
Line 136: Line 136:
= \sum_{n,d} \frac{\cos\left(t \ln\left({\tfrac{n}{d}}\right)\right) - i\sin\left(t \ln\left({\tfrac{n}{d}}\right)\right)}{(nd)^{\sigma}}</math>
= \sum_{n,d} \frac{\cos\left(t \ln\left({\tfrac{n}{d}}\right)\right) - i\sin\left(t \ln\left({\tfrac{n}{d}}\right)\right)}{(nd)^{\sigma}}</math>


where the last equality makes use of the fact that {{nowrap|cos(&minus;x) = cos(x)}} and {{nowrap|sin(&minus;x) = &minus;sin(x)}}.
where the last equality makes use of the fact that {{nowrap|cos(&minus;x) {{=}} cos(x)}} and {{nowrap|sin(&minus;x) {{=}} &minus;sin(x)}}.


Now, let's decompose the sum into three parts: {{nowrap|n = d}}, {{nowrap|n &gt; d}}, and {{nowrap|n &lt; d}}. Here's what we get:
Now, let's decompose the sum into three parts: {{nowrap|n {{=}} d}}, {{nowrap|n &gt; d}}, and {{nowrap|n &lt; d}}. Here's what we get:


<math> \displaystyle
<math> \displaystyle
Line 147: Line 147:
We'll deal with each of these separately.
We'll deal with each of these separately.


First, in the leftmost summation, we can see that n=d implies {{nowrap|ln(n/d) = 0}}. Since {{nowrap|sin(0) = 0}}, the sin term in the numerator cancels out, yielding:
First, in the leftmost summation, we can see that n=d implies {{nowrap|ln(n/d) {{=}} 0}}. Since {{nowrap|sin(0) {{=}} 0}}, the sin term in the numerator cancels out, yielding:


<math> \displaystyle
<math> \displaystyle
Line 162: Line 162:
\frac{\cos\left(t \ln\left({\tfrac{q}{p}}\right)\right) - i\sin\left(t \ln\left({\tfrac{q}{p}}\right)\right)}{(pq)^{\sigma}}</math>
\frac{\cos\left(t \ln\left({\tfrac{q}{p}}\right)\right) - i\sin\left(t \ln\left({\tfrac{q}{p}}\right)\right)}{(pq)^{\sigma}}</math>


Now, noting that {{nowrap|ln(p / q) = &minus;ln(q / p)}} and that sin is an odd function, we can see that the sin terms cancel out, leaving
Now, noting that {{nowrap|ln(p / q) {{=}} &minus;ln(q / p)}} and that sin is an odd function, we can see that the sin terms cancel out, leaving


<math> \displaystyle
<math> \displaystyle
Line 180: Line 180:
\left| \zeta(s) \right|^2 = \sum_{n,d} \frac{\cos\left(t \ln\left({\tfrac{n}{d}}\right)\right)}{(nd)^{\sigma}}</math>
\left| \zeta(s) \right|^2 = \sum_{n,d} \frac{\cos\left(t \ln\left({\tfrac{n}{d}}\right)\right)}{(nd)^{\sigma}}</math>


Finally, by making the mysterious substitution {{nowrap|t = 2π / ln(2) · x}}, the musical implications of the above will start to reveal themselves:
Finally, by making the mysterious substitution {{nowrap|t {{=}} 2π / ln(2) · x}}, the musical implications of the above will start to reveal themselves:


<math> \displaystyle
<math> \displaystyle
Line 189: Line 189:
=== Interpretation of results: "cosine relative error" ===
=== Interpretation of results: "cosine relative error" ===


For every strictly positive rational n/d, there is a cosine with period 2π log<sub>2</sub>(n/d). This cosine peaks at {{nowrap|x = N/log<sub>2</sub>(n/d)}} for all integer N, or in other words, the Nth-equal division of the rational number n/d, and hits troughs midway between.
For every strictly positive rational n/d, there is a cosine with period 2π log<sub>2</sub>(n/d). This cosine peaks at {{nowrap|x {{=}} N/log<sub>2</sub>(n/d)}} for all integer N, or in other words, the Nth-equal division of the rational number n/d, and hits troughs midway between.


Our mysterious substitution above was chosen to set the units for this up nicely. The variable x now happens to be measured in divisions of the octave. (The original variable t, which was the imaginary part of the zeta argument s, can be thought of as the number of divisions of the interval {{nowrap|''e''<sup>2π</sup> ≈ 535.49}}, or what [[Keenan_Pepper|Keenan Pepper]] has called the "natural interval.")
Our mysterious substitution above was chosen to set the units for this up nicely. The variable x now happens to be measured in divisions of the octave. (The original variable t, which was the imaginary part of the zeta argument s, can be thought of as the number of divisions of the interval {{nowrap|''e''<sup>2π</sup> ≈ 535.49}}, or what [[Keenan_Pepper|Keenan Pepper]] has called the "natural interval.")
Line 212: Line 212:
For now, though, we will focus only on the basic zeta result that we have.
For now, though, we will focus only on the basic zeta result that we have.


Going back to the infinite summation above, we note that these cosine error (or really "cosine accuracy") functions are being weighted by 1/(nd)<sup>σ</sup>. Note that σ, which is the real part of the zeta argument s, serves as sort of a complexity weighting - it determines how quickly complex rational numbers become "irrelevant." Framed another way, we can think of it as the degree of "'''rolloff'''" formed by the resultant (musical, not mathematical) harmonic series formed by those rationals with {{nowrap|d = 1}}. Note that this rolloff is much stronger than the usual 1/log(nd) rolloff exhibited by TE error, which is one reason that zeta converges to something coherent for all rational numbers, whereas TE fails to converge as the limit increases. We will use the term "rolloff" to identify the variable σ below.
Going back to the infinite summation above, we note that these cosine error (or really "cosine accuracy") functions are being weighted by 1/(nd)<sup>σ</sup>. Note that σ, which is the real part of the zeta argument s, serves as sort of a complexity weighting - it determines how quickly complex rational numbers become "irrelevant." Framed another way, we can think of it as the degree of "'''rolloff'''" formed by the resultant (musical, not mathematical) harmonic series formed by those rationals with {{nowrap|d {{=}} 1}}. Note that this rolloff is much stronger than the usual 1/log(nd) rolloff exhibited by TE error, which is one reason that zeta converges to something coherent for all rational numbers, whereas TE fails to converge as the limit increases. We will use the term "rolloff" to identify the variable σ below.


Putting this all together, we can take the approach to fix σ, specifying a rolloff, and then let x (or t) vary, specifying an EDO. The resulting function gives us the measured accuracy of EDOs across all unreduced rational numbers with respect to the chosen rolloff. Taking it all together, we get a Tenney-weighted sum of cosine accuracy over all unreduced rationals. QED.
Putting this all together, we can take the approach to fix σ, specifying a rolloff, and then let x (or t) vary, specifying an EDO. The resulting function gives us the measured accuracy of EDOs across all unreduced rational numbers with respect to the chosen rolloff. Taking it all together, we get a Tenney-weighted sum of cosine accuracy over all unreduced rationals. QED.
Line 218: Line 218:
<span style="line-height: 1.5;">It is extremely noteworthy to mention how "composite" rationals are treated differently than with TE error. In addition to our usual error metric on the primes, we also go to each rational, look for the best "direct" or "patent" mapping of that rational within the EDO, and add 'that' to the EDO's score. In particular, we do this even when the best mapping for some rational doesn't match up with the mapping you'd get from it just looking at the primes.
<span style="line-height: 1.5;">It is extremely noteworthy to mention how "composite" rationals are treated differently than with TE error. In addition to our usual error metric on the primes, we also go to each rational, look for the best "direct" or "patent" mapping of that rational within the EDO, and add 'that' to the EDO's score. In particular, we do this even when the best mapping for some rational doesn't match up with the mapping you'd get from it just looking at the primes.


So, for instance, in 16-EDO, the best mapping for 3/2 is 9 steps out of 16, and using that mapping, we get that 9/8 is 2 steps {{nowrap|(9 * 2 - 16 = 2)}}. However, there is a better mapping for 9/8 at 3 steps - one which ignores the fact that it is no longer equal to two 3/2's. This can be particularly useful for playing chords: 16-EDO's "direct mapping" for 9 is useful when playing the chord 4:5:7:9, and the "indirect" or "prime-based" mapping for 9 is useful when playing the "major 9" chord 8:10:12:15:18. We can think of the zeta function as rewarding equal temperaments not just for having a good approximation of the primes, but also for having good "extra" approximations of rationals which can be used in this way. And although 16-EDO is pretty high error, similar phenomena can be found for any EDO which becomes [[consistency|inconsistent]] for some chord of interest.
So, for instance, in 16-EDO, the best mapping for 3/2 is 9 steps out of 16, and using that mapping, we get that 9/8 is 2 steps, since {{nowrap|9 * 2 &minus; 16 {{=}} 2}}. However, there is a better mapping for 9/8 at 3 steps - one which ignores the fact that it is no longer equal to two 3/2's. This can be particularly useful for playing chords: 16-EDO's "direct mapping" for 9 is useful when playing the chord 4:5:7:9, and the "indirect" or "prime-based" mapping for 9 is useful when playing the "major 9" chord 8:10:12:15:18. We can think of the zeta function as rewarding equal temperaments not just for having a good approximation of the primes, but also for having good "extra" approximations of rationals which can be used in this way. And although 16-EDO is pretty high error, similar phenomena can be found for any EDO which becomes [[consistency|inconsistent]] for some chord of interest.


One way to frame this in the usual group-theoretic paradigm is to consider the group in which each strictly positive rational number is given its own linearly independent basis element. In other words, look at the [https://en.wikipedia.org/wiki/Free_group free group] over the strictly positive rationals, which we'll call "'''meta-JI'''." The zeta function can then be thought of as yielding an error for all meta-JI [[Patent_val|generalized patent vals]]. Whether this can be extended to all meta-JI vals, or modified to yield something nice like a "norm" on the group of meta-JI vals, is an open question. Regardless, this may be a useful conceptual bridge to understand how to relate the zeta function to "ordinary" regular temperament theory.
One way to frame this in the usual group-theoretic paradigm is to consider the group in which each strictly positive rational number is given its own linearly independent basis element. In other words, look at the [https://en.wikipedia.org/wiki/Free_group free group] over the strictly positive rationals, which we'll call "'''meta-JI'''." The zeta function can then be thought of as yielding an error for all meta-JI [[Patent_val|generalized patent vals]]. Whether this can be extended to all meta-JI vals, or modified to yield something nice like a "norm" on the group of meta-JI vals, is an open question. Regardless, this may be a useful conceptual bridge to understand how to relate the zeta function to "ordinary" regular temperament theory.
Line 294: Line 294:


==== Peak edos ====
==== Peak edos ====
If we examine the increasingly larger peak values of |Z(x)|, we find they occur with values of x such that Z'(x) = 0 near to integers, so that there is a sequence of [[edo]]s
If we examine the increasingly larger peak values of |Z(x)|, we find they occur with values of x such that {{nowrap|Z'(x) {{=}} 0}} near to integers, so that there is a sequence of [[edo]]s
{{EDOs|1, 2, 3, 4, 5, 7, 10, 12, 19, 22, 27, 31, 41, 53, 72, 99, 118, 130, 152, 171, 217, 224, 270, 342, 422, 441, 494, 742, 764, 935, 954, 1012, 1106, 1178, 1236, 1395, 1448, 1578, 2460, 2684, 3395, 5585, 6079, 7033, 8269, 8539, 11664, 14348, 16808, 28742, 34691, 36269, 57578, 58973, 95524, 102557, 112985, 148418, 212147, 241200,}} ... of ''zeta peak edos''. This is listed in the On-Line Encyclopedia of Integer Sequences as {{OEIS|A117536}}. Note that these peaks typically do not occur at exact integer values, but are close to integer values; this can be interpreted as the zeta function suggesting a "stretched octave" tuning for the edo in question, similar to the [[TOP tuning]] (although the two tunings are in general not the same). As a result, this list can also be thought of as "tempered-octave zeta peak edos."
{{EDOs|1, 2, 3, 4, 5, 7, 10, 12, 19, 22, 27, 31, 41, 53, 72, 99, 118, 130, 152, 171, 217, 224, 270, 342, 422, 441, 494, 742, 764, 935, 954, 1012, 1106, 1178, 1236, 1395, 1448, 1578, 2460, 2684, 3395, 5585, 6079, 7033, 8269, 8539, 11664, 14348, 16808, 28742, 34691, 36269, 57578, 58973, 95524, 102557, 112985, 148418, 212147, 241200,}} ... of ''zeta peak edos''. This is listed in the On-Line Encyclopedia of Integer Sequences as {{OEIS|A117536}}. Note that these peaks typically do not occur at exact integer values, but are close to integer values; this can be interpreted as the zeta function suggesting a "stretched octave" tuning for the edo in question, similar to the [[TOP tuning]] (although the two tunings are in general not the same). As a result, this list can also be thought of as "tempered-octave zeta peak edos."


Line 462: Line 462:
}</math>
}</math>


From this we may deduce that {{nowrap|&theta;(t)/π ≈ r ln(r) &minus; r &minus; 1/8}}, where {{nowrap|r = t / 2π = x / ln(2)}}; hence while x is the number of equal steps to an octave, r is the number of equal steps to an "e-tave", meaning the interval of e, {{nowrap|1200 / ln(2) = 1731.234}} cents.
From this we may deduce that {{nowrap|&theta;(t)/π ≈ r ln(r) &minus; r &minus; 1/8}}, where {{nowrap|r {{=}} t / () {{=}} x / ln(2)}}; hence while x is the number of equal steps to an octave, r is the number of equal steps to an "e-tave", meaning the interval of e, {{nowrap|1200 / ln(2) {{=}} 1731.234}} cents.


Recall that Gram points near to pure-octave edos, where x is an integer, can be expected to correspond to peak values of |&zeta;| = |Z|. We can find these Gram points by Newton's method applied to the above formula. If {{nowrap|r = x/ln(2)}}, and if {{nowrap|n = &lfloor;r ln(r) &minus; r + 3/8&rfloor;}} is the nearest integer to {{nowrap|&theta;(2πr) / π}}, then we may set {{nowrap|r⁺ = (r + n + 1/8) / ln(r)}}. This is the first iteration of Newton's method, which we may repeat if we like, but in fact no more than one iteration is really required. This is the first black magic formula, giving an adjusted "Gram" tuning from the orginal one.
Recall that Gram points near to pure-octave edos, where x is an integer, can be expected to correspond to peak values of {{nowrap|{{!}}&zeta;{{!}} {{=}} {{!}}Z{{!}}}}. We can find these Gram points by Newton's method applied to the above formula. If {{nowrap|r {{=}} x/ln(2)}}, and if {{nowrap|n {{=}} &lfloor;r ln(r) &minus; r + 3/8&rfloor;}} is the nearest integer to {{nowrap|&theta;(2πr) / π}}, then we may set {{nowrap|r⁺ {{=}} (r + n + 1/8) / ln(r)}}. This is the first iteration of Newton's method, which we may repeat if we like, but in fact no more than one iteration is really required. This is the first black magic formula, giving an adjusted "Gram" tuning from the orginal one.


For an example, consider {{nowrap|x = 12}}, so that {{nowrap|r = 12/ln(2) = 17.312}}. Then {{nowrap|r ln(r) &minus; r &minus; 1/8 = 31.927}}, which rounded to the nearest integer is 32, so {{nowrap|n = 32}}. Then {{nowrap|(r + n + 1/8) / ln(r) = 17.338}}, corresponding to {{nowrap|x = 12.0176}}, which means a single step is 99.853 cents and the octave is tempered to twelve of these, which is 1198.238 cents.
For an example, consider {{nowrap|x {{=}} 12}}, so that {{nowrap|r {{=}} 12/ln(2) {{=}} 17.312}}. Then {{nowrap|r ln(r) &minus; r &minus; 1/8 {{=}} 31.927}}, which rounded to the nearest integer is 32, so {{nowrap|n {{=}} 32}}. Then {{nowrap|(r + n + 1/8) / ln(r) {{=}} 17.338}}, corresponding to {{nowrap|x {{=}} 12.0176}}, which means a single step is 99.853 cents and the octave is tempered to twelve of these, which is 1198.238 cents.


The fact that x is slightly greater than 12 means 12 has an overall sharp quality. We may also find this out by looking at the value we computed for {{nowrap|&theta;(2πr) / π}}, which was 31.927. Then {{nowrap|32 &minus; 31.927 = 0.0726}}, which is positive but not too large; this is the second black magic formula, evaluating the nature of an edo x by computing {{nowrap|&lfloor;r ln(r) &minus; r + 3/8&rfloor; &minus; r ln(r) + r + 1/8}}, where {{nowrap|r = x / ln(2)}}. This works more often than not on the clearcut cases, but when x is extreme it may not; 49 is very sharp in tendency, for example, but this method calls it as flat; similarly it counts 45 as sharp.
The fact that x is slightly greater than 12 means 12 has an overall sharp quality. We may also find this out by looking at the value we computed for {{nowrap|&theta;(2πr) / π}}, which was 31.927. Then {{nowrap|32 &minus; 31.927 {{=}} 0.0726}}, which is positive but not too large; this is the second black magic formula, evaluating the nature of an edo x by computing {{nowrap|&lfloor;r ln(r) &minus; r + 3/8&rfloor; &minus; r ln(r) + r + 1/8}}, where {{nowrap|r {{=}} x / ln(2)}}. This works more often than not on the clearcut cases, but when x is extreme it may not; 49 is very sharp in tendency, for example, but this method calls it as flat; similarly it counts 45 as sharp.


== Computing zeta ==
== Computing zeta ==
There are various approaches to the question of computing the zeta function, but perhaps the simplest is the use of the [[Wikipedia:Dirichlet eta function|Dirichlet eta function]] which was introduced to mathematics by [[Wikipedia:Johann Peter Gustav Lejeune Dirichlet|Johann Peter Gustav Lejeune Dirichlet]], who despite his name was a German and the brother-in-law of [[Wikipedia:Felix Mendelssohn|Felix Mendelssohn]].
There are various approaches to the question of computing the zeta function, but perhaps the simplest is the use of the [[Wikipedia:Dirichlet eta function|Dirichlet eta function]] which was introduced to mathematics by [[Wikipedia:Johann Peter Gustav Lejeune Dirichlet|Johann Peter Gustav Lejeune Dirichlet]], who despite his name was a German and the brother-in-law of [[Wikipedia:Felix Mendelssohn|Felix Mendelssohn]].


The zeta function has a [http://mathworld.wolfram.com/SimplePole.html simple pole] at {{nowrap|z = 1}} which forms a barrier against continuing it with its [[Wikipedia:Euler product|Euler product]] or [[Wikipedia:Dirichlet series|Dirichlet series]] representation. We could subtract off the pole, or multiply by a factor of {{nowrap|(z &minus; 1)}}, but at the expense of losing the character of a Dirichlet series or Euler product. A better method is to multiply by a factor of (1-2^(1-z)), leading to the eta function:
The zeta function has a [http://mathworld.wolfram.com/SimplePole.html simple pole] at {{nowrap|z {{=}} 1}} which forms a barrier against continuing it with its [[Wikipedia:Euler product|Euler product]] or [[Wikipedia:Dirichlet series|Dirichlet series]] representation. We could subtract off the pole, or multiply by a factor of {{nowrap|(z &minus; 1)}}, but at the expense of losing the character of a Dirichlet series or Euler product. A better method is to multiply by a factor of (1-2^(1-z)), leading to the eta function:


<math>\displaystyle{\eta(z) = (1-2^{1-z})\zeta(z) = \sum_{n=1}^\infty (-1)^{n-1} n^{-z}
<math>\displaystyle{\eta(z) = (1-2^{1-z})\zeta(z) = \sum_{n=1}^\infty (-1)^{n-1} n^{-z}
= \frac{1}{1^z} - \frac{1}{2^z} + \frac{1}{3^z} - \frac{1}{4^z} + \cdots}</math>
= \frac{1}{1^z} - \frac{1}{2^z} + \frac{1}{3^z} - \frac{1}{4^z} + \cdots}</math>


The Dirichlet series for the zeta function is absolutely convergent when {{nowrap|s &gt; 1}}, justifying the rearrangement of terms leading to the alternating series for eta, which converges conditionally in the critical strip. The extra factor introduces zeros of the eta function at the points {{nowrap|1 + 2πix/ln(2)}} corresponding to pure octave divisions along the line {{nowrap|s = 1}}, but no other zeros, and in particular none in the critical strip and along the critical line. The convergence of the alternating series can be greatly accelerated by applying [[Wikipedia:Euler summation|Euler summation]].
The Dirichlet series for the zeta function is absolutely convergent when {{nowrap|s &gt; 1}}, justifying the rearrangement of terms leading to the alternating series for eta, which converges conditionally in the critical strip. The extra factor introduces zeros of the eta function at the points {{nowrap|1 + 2πix/ln(2)}} corresponding to pure octave divisions along the line {{nowrap|s {{=}} 1}}, but no other zeros, and in particular none in the critical strip and along the critical line. The convergence of the alternating series can be greatly accelerated by applying [[Wikipedia:Euler summation|Euler summation]].


== Open problems ==
== Open problems ==