User:Inthar/Math style guide: Difference between revisions
From Xenharmonic Reference
Copy from Xen Wiki |
|||
| Line 35: | Line 35: | ||
* <math>\log</math> with no subscript is base ''e''. | * <math>\log</math> with no subscript is base ''e''. | ||
* Avoid <math>\mathbb{N}.</math> Use <math>\mathbb{Z}_{>0}</math> or <math>\mathbb{Z}_{\ge 0}</math> depending on which is meant. | * Avoid <math>\mathbb{N}.</math> Use <math>\mathbb{Z}_{>0}</math> or <math>\mathbb{Z}_{\ge 0}</math> depending on which is meant. | ||
* <math>s \otimes t</math> denotes the [[cross-set scale | * <math>s \otimes t</math> denotes the [[cross-set scale]] of scales ''s'' and ''t''. <math>s^{\otimes 0} = \{\mathbf{0}\}, s^{\otimes n + 1} = s \otimes s^{\otimes n}</math> is the ''n''-fold iterated cross-set. | ||
* "''p'' lest ''q''" is shorthand for "''p'', for otherwise ''q'', which is a contradiction". | * "''p'' lest ''q''" is shorthand for "''p'', for otherwise ''q'', which is a contradiction". | ||
Revision as of 20:17, 25 December 2025
This section documents notation that may differ from conventional xen notation or conventional math notation.
Variables
- Capital italicized Latin letters may denote scales written cumulatively: i.e. with S(0) = 0 and S(i + p) = E + S(i) (p = length, E = equave) for every i.
- S(n) = 100n cents
- Lowercase italicized Latin letters may denote (rotational equivalence classes of) scales written as steps, or abstract scale words. For example:
- s(a, b, c) = abacaba
- Bolded variables denote interval sizes (especially letters of scale words) and elements of lattices. This is optional, but may be used for visual clarity, particularly in pages with more mathematical notation. 0 is the unison.
- 5L 2s
- Sans serif function names are scale constructions, or more generally functions named more verbosely than is typical for conventional math notation. The page should define any sans-serif functions clearly, as it should any notation not specifically stated on this page.
- Blackdye is
Sets
- For conciseness the following notation is provided for ranges. For and denotes [0]x is the empty set, and [ω]x is the set You may also use:
- for
- for
Words
- Zero-indexing is used for word indices.
- A (linear) word is a function where is a set of letters and or n = ∞. n is called the length of w. The letter of w at index i is denoted w[i]. If 0 ≤ i < j ≤ |w| − 1, the slice notation w[i:j] denotes the (j − i)-letter word w[i]w[i + 1]...w[j − 1].
- A based circular word is a function where by abuse of notation, s[i] is used for s[i mod n]. The index period of a based circular word s is the minimal such that for all i, If the index period of s is equal to the length of s, then s is called primitive.
- A (free) circular word is an equivalence class of based circular words equivalent under rotation, i.e. a set of the form for s a based circular word. Equivalently, a free circular word is an equivalence class of linear words of the same length under conjugacy. A based circular word may be called a mode of the corresponding free circular word or a rotation of the based circular word.
- The length of a linear, based circular, or free circular word s is denoted |s| or len(s).
- For circular words s, if i < j the slice notation s[i:j] denotes the (j − i)-letter word s[i]s[i + 1]...s[j − 1], where all indices are taken mod |s|.
- Shifts: If s is a circular or infinite word, then for denotes s shifted to the left by k letters.
- Substitution: If w is a linear or based circular word in X and possibly other letters, and u is a based circular word, then denotes the word w but with the ith occurrence of X replaced with u[i] (for i ≥ 0).
Algebra
- is the p1.[...].pr subgroup, the subgroup of generated by rationals For not-necessarily-JI generators, is used.
- If R is a commutative ring with 1, is the rank-r free R-module generated by basis elements Ordered tuples in such modules are assumed to be in the given basis. Example:
Miscellaneous
- with no subscript is base e.
- Avoid Use or depending on which is meant.
- denotes the cross-set scale of scales s and t. is the n-fold iterated cross-set.
- "p lest q" is shorthand for "p, for otherwise q, which is a contradiction".
