Monzo: Difference between revisions

real math tags
Line 18: Line 18:


== Examples ==
== Examples ==
For example, the interval 15/8 can be thought of as having 5*3 in the numerator, and 2*2*2 in the denominator. This can be compactly represented by the expression <math>2^{-3} \cdot 3^1 \cdot 5^1</math>, which is exactly equal to 15/8. We construct the monzo by taking the exponent from each prime, in order, and placing them within the {{Monzo| ... }} brackets, hence yielding {{Monzo|-3 1 1}}.  
For example, the interval 15/8 can be thought of as having <math>5⋅3</math> in the numerator, and <math>2⋅2⋅2</math> in the denominator. This can be compactly represented by the expression <math>2^{-3} \cdot 3^1 \cdot 5^1</math>, which is exactly equal to 15/8. We construct the monzo by taking the exponent from each prime, in order, and placing them within the {{Monzo| ... }} brackets, hence yielding {{Monzo|-3 1 1}}.  


:'''Practical hint:''' Because the pipe symbol and the greater sign have special meaning in wiki syntax and HTML, there is a helper template ([[Template:Monzo]]) that can be used like this <code><nowiki>{{Monzo|arguments}}</nowiki></code> to get the monzo brackets (<code>{{Monzo|arguments}}</code>) from it.
:'''Practical hint:''' Because the pipe symbol and the greater sign have special meaning in wiki syntax and HTML, there is a helper template ([[Template:Monzo]]) that can be used like this <code><nowiki>{{Monzo|arguments}}</nowiki></code> to get the monzo brackets (<code>{{Monzo|arguments}}</code>) from it.