Val: Difference between revisions

Structural improvements for the examples
m - typo
Line 65: Line 65:
* mapping of 45/32: {{val| 26 41 60 }}{{monzo| -5 2 1 }} = 26 × -5 + 41 × 2 + 60 × 1 = -130 + 82 + 60 = 12 (steps of 26edo)
* mapping of 45/32: {{val| 26 41 60 }}{{monzo| -5 2 1 }} = 26 × -5 + 41 × 2 + 60 × 1 = -130 + 82 + 60 = 12 (steps of 26edo)


This is all very tedious, but in practice using a val is much simpler, because you do not need to do this, all you need to know is [[5/4]] is mapped to 8\26 and [[3/2]] is mapped to 15\26, therefore [[9/4]] is mapped to 30\26, therefore [[9/8]] is mapped to (30 - 26)\26 = 4\26, so that since we know (9/8)⋅(5/4 = 45/32, the mapped version of 45/32 will just be 4 + 8 = 12. This method guarantees that you never contradict yourself, even if you are technically using suspicious approximations.
This is all very tedious, but in practice using a val is much simpler, because you do not need to do this, all you need to know is [[5/4]] is mapped to 8\26 and [[3/2]] is mapped to 15\26, therefore [[9/4]] is mapped to 30\26, therefore [[9/8]] is mapped to (30 - 26)\26 = 4\26, so that since we know (9/8)⋅(5/4) = 45/32, the mapped version of 45/32 will just be 4 + 8 = 12. This method guarantees that you never contradict yourself, even if you are technically using suspicious approximations.


For the mathematically inclined, note that this operation is the same as taking the {{w|dot product}} between the monzo and val interpreted as ordinary vectors.
For the mathematically inclined, note that this operation is the same as taking the {{w|dot product}} between the monzo and val interpreted as ordinary vectors.
Retrieved from "https://en.xen.wiki/w/Val"