Module:Utils/doc: Difference between revisions
Document "value_provided" |
ArrowHead294 (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{dochead}} | |||
This module provides several mathematical functions which are likely to be used frequently on the Xenharmonic Wiki. | This module provides several mathematical functions which are likely to be used frequently on the Xenharmonic Wiki. | ||
Line 18: | Line 19: | ||
* <code>next_young_diagram(d)</code> returns the next Young diagram of the same size; the first one is <code>[N]</code>, the last one is <code>[1, 1, ..., 1]</code>. After the last one, <code>nil</code> is returned. The input table is modified. This function is designed to be used by other modules only; it cannot be called with <code><nowiki>{{#invoke:}}</nowiki></code>. | * <code>next_young_diagram(d)</code> returns the next Young diagram of the same size; the first one is <code>[N]</code>, the last one is <code>[1, 1, ..., 1]</code>. After the last one, <code>nil</code> is returned. The input table is modified. This function is designed to be used by other modules only; it cannot be called with <code><nowiki>{{#invoke:}}</nowiki></code>. | ||
* <code>get_monzo(n, d)</code> Get monzo of n/d, e.g. 3/2 -> <code>{[2] = -1, [3] = 1}</code>. | * <code>get_monzo(n, d)</code> Get monzo of n/d, e.g. 3/2 -> <code>{[2] = -1, [3] = 1}</code>. | ||