Douglas Blumeyer's RTT How-To: Difference between revisions

Cmloegcmluin (talk | contribs)
oops, also have to update bases and mapping-row
Cmloegcmluin (talk | contribs)
vectors and covectors: trick for Wolfram cloud
Line 61: Line 61:
For another example, we can quickly find the fifth size for 12-EDO from its map, because 3/2 is {{vector|-1 1 0}}, and so {{map|12 19 28}}{{vector|-1 1 0}} = (12 × -1) + (19 × 1) = 7. Similarly, the major third — 5/4, or {{vector|-2 0 1}} — is simply 28 - 12 - 12 = 4.
For another example, we can quickly find the fifth size for 12-EDO from its map, because 3/2 is {{vector|-1 1 0}}, and so {{map|12 19 28}}{{vector|-1 1 0}} = (12 × -1) + (19 × 1) = 7. Similarly, the major third — 5/4, or {{vector|-2 0 1}} — is simply 28 - 12 - 12 = 4.


Throughout this article I will be referring to examples implemented in [https://www.wolfram.com/language/ Wolfram Language] (formerly Mathematica), a popular and capable programming language for working with math. If you're interested in trying them out, you can run them right on the web without downloading or setting anything up on your computer: just go to https://www.wolframcloud.com, sign up for free, create a new computational notebook, paste any of these code snippets in to a cell, and Shift+Enter to run them; you'll be computing in no time. FYI, any notebook you create has a lifespan of 60 days before Wolfram will recycle it, so you'll have to copy and paste them to new notebooks or wherever if you don't want to lose your work.
Throughout this article I will be referring to examples implemented in [https://www.wolfram.com/language/ Wolfram Language] (formerly Mathematica), a popular and capable programming language for working with math. If you're interested in trying them out, you can run them right on the web without downloading or setting anything up on your computer: just go to https://www.wolframcloud.com, sign up for free, create a new computational notebook, paste any of these code snippets in to a cell, and Shift+Enter to run them; you'll be computing in no time. FYI, any notebook you create has a lifespan of 60 days before Wolfram will recycle it, so you'll have to copy and paste them to new notebooks or wherever if you don't want to lose your work.<ref>It's not as simple as select-all, copy, paste, because of how computational notebooks can (and should) be broken down into many cells. However there is a handy way to copy all cells, including all of each of their output: just click in the top right to select the first cell (it should highlight along the right edge in blue), then shift-click the same area but for the bottom cell, copy, and paste. Voilà!</ref>


If, on the other hand, you're not interested in code examples, that's no big deal. They're not necessary to follow along.  
If, on the other hand, you're not interested in code examples, that's no big deal. They're not necessary to follow along.