S-expression/Advanced results: Difference between revisions

Lériendil (talk | contribs)
mNo edit summary
Sintel bot (talk | contribs)
Fix <math> environments for MathJax v4 (align->aligned, etc.)
 
(2 intermediate revisions by one other user not shown)
Line 2: Line 2:


== Using S-factorizations to understand the significance of S-expressions ==
== Using S-factorizations to understand the significance of S-expressions ==
This section deals with the forms of the main infinite comma families listed on the main [[S-expression]] page as expressed in terms of nearby harmonics in the harmonic series and as related to square-particulars; note that this uses a mathematical notation of [a, b, c, ...]^[x, y, z, ...] to denote a^x * b^y * c^z * ...
See [[S-expression#Using S-factorizations to understand the significance of S-expressions]].
 
If instead of working through things algebraically we look at square-particulars as describing a relationship between adjacent harmonics, we can use this to understand why certain simplifications and equivalences exist in a way that is equivalent to the sometimes harder-to-understand usual algebraic form:
 
If we describe S''k'' as [''k''-1, ''k'', ''k''+1]^[-1, 2, -1] then if we write something like S''k''/S(''k'' + 2) (semiparticulars) in this form we get:
 
[''k''-1, ''k'', ''k''+1, ''k''+2, ''k''+3]^([-1, 2, -1, 0, 0] - [0, 0, -1, 2, -1] = [-1, 2, 0, -2, 1]) from which we can clearly see that we have two (''k''+2)/''k'''s making up a (''k''+3)/(''k''-1). An exercise to the reader is to go through the other forms discussed on this page to derive similar expressions.
 
<pre>
Sk = [k-1, k, k+1]^[-1, 2, -1]
</pre>
<pre>
Sk * S(k+1) = [k-1, k, k+1, k+2]^[-1, 1, 1, -1]
= [k-1, k, k+1(, k+2)]^[-1, 2, -1(, 0)] * [(k-1,) k, k+1, k+2]^[(0,) -1, 2, -1]
</pre>
<pre>
S(k-1) * Sk * S(k+1) = [k-2, k-1, k, k+1, k+2]^[-1, 1, 0, 1, -1]
= ( (k-1)/(k-2) )( k/(k-1) ) * ( k/(k-1) )/( (k+1)/k ) * ( (k+1)/k )/( (k+2)/(k+1) )
= ( (k-1)/(k-2) )/( (k+2)/(k+1) ) = ( (k-1)(k+1) )/( (k-2)(k+2) )
 
k-2  k-1  k  k+1  k+2
-1    2  -1    0    0
0  -1    2  -1    0
0    0  -1    2  -1
========================
-1    1    0    1  -1
</pre>
<pre>
Sk / S(k+1) = [k-1, k, k+1, k+2]^[-1, 3, -3, 1]
= [k-1, k, k+1]^[-1, 2, -1] * [k, k+1, k+2]^[1, -2, 1]
= (k+2)/(k-1) * ( k/(k+1) )^3 = (k+2)/(k-1) / ((k+1)/k)^3
</pre>
<pre>
S(k-1) / S(k+1) = [k-2, k-1, k, k+1, k+2]^[-1, 2, 0, -2, 1]
= [k-2, k-1, k]^[-1, 2, -1] * [k, k+1, k+2]^[ 1, -2,  1]
= [k-2, k-1, k]^[-1, 2, -1] / [k, k+1, k+2]^[-1,  2, -1]
= (k+2)/(k-2) * ((k-1)/(k+1))^2 = (k+2)/(k-2) / ((k+1)/(k-1))^2
 
k-2  k-1  k  k+1  k+2
-1    2  -1    0    0
0    0    1  -2    1
========================
-1    2    0  -2    1
</pre>
 
This technique will be called "'''S-factorizations'''", as it is uses a certain format for expressing factorization (analogous to [[monzo]]s) that is uniquely suited for interpreting the relationships described by '''S-expressions'''.
 
Note that the redundancy in these factorizations (in the sense that there are generators that are not linearly independent of the others) is a property that reflects the reality of [[#Equivalent S-expressions|equivalent S-expressions]].
 
The generalisation of this method using commutative group theory is discussed in [[square superparticular#Abstraction|the abstraction section of this page]].
 
=== Using S-factorizations to show a useful equivalence/redundancy of S-expressions ===
Absent of restrictions on the form that an S-expression may take, there is no unique S-expression for any given rational number. This is in fact a huge advantage, because it allows one to understand the landscape of commas in a way that sees interconnectedness of subgroups and corresponding tempering opportunities. But then what S-expressions are equivalent, other than mathematical one-offs? The most important general rule can be derived quite simply using S-factorizations:
 
==== The general S-expression equivalence ====
Consider:
<pre>
Sk = [k-1, k, k+1]^[-1, 2, -1] versus what it is claimed to be equivalent to:
S(2k-1) * S(2k) * S(2k) * S(2k+1)
= [2k-2, 2k-1, 2k, 2k+1, 2k+2]^(
  [-1,    2,  -1]
      + [-2,    4,  -2]
            + [-1,    2,  -1]
= [-1,    0,    2,    0,  -1] )
</pre>
From here we can observe that the exponents are on even integers and that the factors of 2 involved cancel (we divide by 2 once for 2k-2 and 2k+2 having -1 as the power and we multiply by 2 twice for 2k having 2 as the power). Therefore the expressions are algebraically equivalent, which leads to the surprising fact that the following equivalence is true for all real and complex ''k'':
 
<math>
\large {\rm S}k = \large {\rm S}(2k-1) \cdot \large {\rm S}(2k)^2 \cdot \large {\rm S}(2k+1)
</math>
 
...where we use the notation S''k''<sup>''p''</sup> to mean (S''k'')<sup>''p''</sup> rather than S(''k''<sup>''p''</sup>) for convenience in the practical analysis of [[regular temperament]]s using [[S-expression]]s.
 
For tuning theory only integer ''k'' > 1 is of relevance. Technically, rational ''k'' other than 1 correspond to rational commas too; the most relevant case for tuning theory is that half-integer ''k'' work as an alternative notation for [[odd-particular]]s, though for intuitively understanding the notation, the method described in [[#Abstraction]] may be recommendable as having (in a mathematical sense) exact analogues for every infinite family of commas defined in terms of an analogue of an S-expression, for which the most musically fruitful example is O''k'' = (''k'' / (''k'' - 2))/((''k'' + 2) / ''k'') for odd ''k'' as relevant to [[no-twos subgroup temperaments]].


== Mathematical derivations ==
== Mathematical derivations ==
Line 84: Line 11:


<math>
<math>
\begin {align}
\begin{aligned}
{\rm S}k/{\rm S}(k + 1) &= \frac {k^2/(k^2 - 1)}{(k + 1)^2 / ((k + 1)^2 - 1)} \\
{\rm S}k/{\rm S}(k + 1) &= \frac {k^2/(k^2 - 1)}{(k + 1)^2 / ((k + 1)^2 - 1)} \\
&= \frac {k^2}{(k + 1)(k - 1)} \cdot \frac{k^2 + 2k}{(k + 1)^2} \\
&= \frac {k^2}{(k + 1)(k - 1)} \cdot \frac{k^2 + 2k}{(k + 1)^2} \\
Line 90: Line 17:
&= \frac {k^3}{(k + 1)^3} \cdot \frac{(k + 2)}{(k - 1)} \\
&= \frac {k^3}{(k + 1)^3} \cdot \frac{(k + 2)}{(k - 1)} \\
&= \frac {(k + 2)/(k - 1)}{((k + 1)/k)^3}
&= \frac {(k + 2)/(k - 1)}{((k + 1)/k)^3}
\end {align}
\end{aligned}
</math>
</math>


Line 96: Line 23:


<math>
<math>
\begin {align}
\begin{aligned}
{\rm S}k/{\rm S}(k + 2) &= \frac {k^2/(k^2 - 1)}{(k + 2)^2 / ((k + 2)^2 - 1)} \\
{\rm S}k/{\rm S}(k + 2) &= \frac {k^2/(k^2 - 1)}{(k + 2)^2 / ((k + 2)^2 - 1)} \\
&= \frac {k^2}{(k + 1)(k - 1)} \cdot \frac{(k + 3)(k + 1)}{(k + 2)^2} \\
&= \frac {k^2}{(k + 1)(k - 1)} \cdot \frac{(k + 3)(k + 1)}{(k + 2)^2} \\
Line 102: Line 29:
&= \frac {k + 3}{k - 1} \cdot \frac{k^2}{(k + 2)^2} \\
&= \frac {k + 3}{k - 1} \cdot \frac{k^2}{(k + 2)^2} \\
&= \frac {(k + 3)/(k - 1)}{((k + 2)/k)^2}
&= \frac {(k + 3)/(k - 1)}{((k + 2)/k)^2}
\end {align}
\end{aligned}
</math>
</math>


Line 108: Line 35:


<math>
<math>
\begin {align}
\begin{aligned}
{\rm S}k/{\rm S}(k + 2) &= \frac {k + 3}{k - 1} \cdot \frac{k^2}{(k + 2)^2} \\
{\rm S}k/{\rm S}(k + 2) &= \frac {k + 3}{k - 1} \cdot \frac{k^2}{(k + 2)^2} \\
&= \frac {k^3 + 3k^2}{(k - 1)(k^2 + 4k + 4)} \\
&= \frac {k^3 + 3k^2}{(k - 1)(k^2 + 4k + 4)} \\
&= \frac {k^3 + 3k^2}{k^3 + 4k^2 + 4k - k^2 - 4k - 4} \\
&= \frac {k^3 + 3k^2}{k^3 + 4k^2 + 4k - k^2 - 4k - 4} \\
&= \frac {k^3 + 3k^2}{k^3 + 3k^2 - 4}
&= \frac {k^3 + 3k^2}{k^3 + 3k^2 - 4}
\end {align}
\end{aligned}
</math>
</math>


Line 129: Line 56:


: <math>
: <math>
\begin {align}
\begin{aligned}
{\rm S}(4n + 1)/{\rm S}(4n + 3) &= \frac {(4n + 1)^3 + 3(4n + 1)^2}{(4n + 1)^3 + 3(4n + 1)^2 - 4} \\
{\rm S}(4n + 1)/{\rm S}(4n + 3) &= \frac {(4n + 1)^3 + 3(4n + 1)^2}{(4n + 1)^3 + 3(4n + 1)^2 - 4} \\
&= \frac {(4m + 1) + 3(4a + 1)}{(4m + 1) + 3(4a + 1) - 4} \\
&= \frac {(4m + 1) + 3(4a + 1)}{(4m + 1) + 3(4a + 1) - 4} \\
&= \frac {4m + 4(3a) + 4}{4m + 4(3a)} \\
&= \frac {4m + 4(3a) + 4}{4m + 4(3a)} \\
&= \frac {m + 3a + 1}{m + 3a}
&= \frac {m + 3a + 1}{m + 3a}
\end {align}
\end{aligned}
</math>
</math>


Line 150: Line 77:


: <math>
: <math>
\begin {align}
\begin{aligned}
{\rm S}(4n - 1)/{\rm S}(4n + 1) &= \frac {(4n - 1)^3 + 3(4n - 1)^2}{(4n - 1)^3 + 3(4n - 1)^2 - 4} \\
{\rm S}(4n - 1)/{\rm S}(4n + 1) &= \frac {(4n - 1)^3 + 3(4n - 1)^2}{(4n - 1)^3 + 3(4n - 1)^2 - 4} \\
&= \frac {(4m - 1) + 3(4a + 1)}{(4m - 1) + 3(4a + 1) - 4} \\
&= \frac {(4m - 1) + 3(4a + 1)}{(4m - 1) + 3(4a + 1) - 4} \\
&= \frac {4m + 4(3a) + 2}{4m + 4(3a) - 2} \\
&= \frac {4m + 4(3a) + 2}{4m + 4(3a) - 2} \\
&= \frac {2m + 2(3a) + 1}{2m + 2(3a) - 1}
&= \frac {2m + 2(3a) + 1}{2m + 2(3a) - 1}
\end {align}
\end{aligned}
</math>
</math>


Line 176: Line 103:


<math>
<math>
\begin {align}
\begin{aligned}
{\rm S}(k) = \frac{h_k^2}{h_{k-1} h_{k+1}} = (h_k / h_{k-1})/(h_{k+1} / h_k) = h_k h_{k-1}^{-1} (h_{k+1} h_k^{-1})^{-1} = h_k^2 h_{k-1}^{-1} h_{k+1}^{-1}
{\rm S}(k) = \frac{h_k^2}{h_{k-1} h_{k+1}} = (h_k / h_{k-1})/(h_{k+1} / h_k) = h_k h_{k-1}^{-1} (h_{k+1} h_k^{-1})^{-1} = h_k^2 h_{k-1}^{-1} h_{k+1}^{-1}
\end {align}
\end{aligned}
</math>
</math>


Line 184: Line 111:


<math>
<math>
\begin {align}
\begin{aligned}
{\rm S}(k) =\ .. h_{k-3}^0 h_{k-2}^0 h_{k-1}^{-1} h_k^2 h_{k+1}^{-1} h_{k+2}^0 h_{k+3}^0 ..\ = [..,\ h_{k-3},\ h_{k-2},\ h_{k-1},\ h_k,\ h_{k+1},\ h_{k+2},\ h_{k+3},\ ..]^{\Large[..,\ 0,\ 0, -1,\ 2, -1,\ 0,\ 0,\ ..]}
{\rm S}(k) =\ .. h_{k-3}^0 h_{k-2}^0 h_{k-1}^{-1} h_k^2 h_{k+1}^{-1} h_{k+2}^0 h_{k+3}^0 ..\ = [..,\ h_{k-3},\ h_{k-2},\ h_{k-1},\ h_k,\ h_{k+1},\ h_{k+2},\ h_{k+3},\ ..]^{\Large[..,\ 0,\ 0, -1,\ 2, -1,\ 0,\ 0,\ ..]}
\end {align}
\end{aligned}
</math>
</math>


Line 218: Line 145:


<math>
<math>
\begin {align}
\begin{aligned}
{\rm So}(k) = h_k^2 h_{k-1}^{-1} h_{k+1}^{-1} = \frac{ (2k+1)^2 }{ (2k-1)(2k+3) } = \frac{ 4k^2 + 4k + 1 }{ 4k^2 + 4k - 3 }
{\rm So}(k) = h_k^2 h_{k-1}^{-1} h_{k+1}^{-1} = \frac{ (2k+1)^2 }{ (2k-1)(2k+3) } = \frac{ 4k^2 + 4k + 1 }{ 4k^2 + 4k - 3 }
\end {align}
\end{aligned}
</math>
</math>


Line 231: Line 158:


<math>
<math>
\begin {align}
\begin{aligned}
{\rm Ss}(k) = h_k^2 h_{k-1}^{-1} h_{k+1}^{-1} = \large \frac{ \frac{(k+1)}{k} \cdot  \frac{(k+1)}{k} }{ \frac{k}{k-1}\cdot\frac{k+2}{k+1} } \normalsize = \frac{ {\rm S}(k+1) }{ {\rm S}(k) }
{\rm Ss}(k) = h_k^2 h_{k-1}^{-1} h_{k+1}^{-1} = \large \frac{ \frac{(k+1)}{k} \cdot  \frac{(k+1)}{k} }{ \frac{k}{k-1}\cdot\frac{k+2}{k+1} } \normalsize = \frac{ {\rm S}(k+1) }{ {\rm S}(k) }
\implies {\rm Ss}(k){\rm Ss}(k-1) = \frac{ {\rm S}(k+1) }{ {\rm S}(k) } \cdot \frac{ {\rm S}(k) }{ {\rm S}(k-1) } = \frac{ {\rm S}(k+1) }{ {\rm S}(k-1) }
\implies {\rm Ss}(k){\rm Ss}(k-1) = \frac{ {\rm S}(k+1) }{ {\rm S}(k) } \cdot \frac{ {\rm S}(k) }{ {\rm S}(k-1) } = \frac{ {\rm S}(k+1) }{ {\rm S}(k-1) }
\end {align}
\end{aligned}
</math>
</math>