User:Inthar/Math style guide: Difference between revisions

From Xenharmonic Reference
mNo edit summary
Line 1: Line 1:
 
This document is a style guide. Pages are not required to follow it, but any page that does should link to this page using <code>{{<nowiki />User:Inthar/Template:Notation}}</code>. It documents notation that may differ from conventional xen notation or conventional math notation.
This section documents notation that may differ from conventional xen notation or conventional math notation.


=== Variables ===
=== Variables ===

Revision as of 20:18, 25 December 2025

This document is a style guide. Pages are not required to follow it, but any page that does should link to this page using {{User:Inthar/Template:Notation}}. It 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
    • n=ab1s(n)=S(b)S(a) if s(n):=S(n+1)S(n)
  • 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 crossset(Pyth[5];10/9)

Sets

  • For conciseness the following notation is provided for ranges. For x and n>0, [n]x denotes {x,x+1,...,x+n1}. [0]x is the empty set, and [ω]x is the set {x+n:n0}. You may also use:
    • [i:j] for [ji]i
    • [i:] for [ω]i.

Words

  • Zero-indexing is used for word indices.
  • A (linear) word is a function w:[n]0𝒜 where 𝒜 is a set of letters and n0 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 (ji)-letter word w[i]w[i + 1]...w[j − 1].
  • A based circular word is a function s:/n𝒜, 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 p,1p|s|, such that for all i, s[i+p]=s[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 {xs[x],xs[x+1],...,xs[x+|s|1]} 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 (ji)-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 k, σk(s)=(xs[x+k]) 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 subst(w,𝐗,u) denotes the word w but with the ith occurrence of X replaced with u[i] (for i ≥ 0).

Algebra

  • JI(p1,...,pr) is the p1.[...].pr subgroup, the subgroup of (>0,) generated by rationals p1,...,pr. For not-necessarily-JI generators, Mul(p1,...,pr) is used.
  • If R is a commutative ring with 1, Rra1,...,ar is the rank-r free R-module generated by basis elements a1,...,ar. Ordered tuples in such modules are assumed to be in the given basis. Example: 𝐦+3𝐬=(0,1,3)3𝐋,𝐦,𝐬

Miscellaneous

  • log with no subscript is base e.
  • Avoid . Use >0 or 0 depending on which is meant.
  • st denotes the cross-set scale of scales s and t. s0={𝟎},sn+1=ssn is the n-fold iterated cross-set.
  • "p lest q" is shorthand for "p, for otherwise q, which is a contradiction".