Template:Infobox interval/doc: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
Formatting
Line 2: Line 2:
=== Usage ===
=== Usage ===
There are three different ways to use this template:
There are three different ways to use this template:
* Small ratios: <code><nowiki>{{Infobox Interval}}</nowiki></code> (the ratio is inferred from page name), <code><nowiki>{{Infobox Interval|7/4}}</nowiki></code>, <code><nowiki>{{Infobox Interval|Ratio=7/4}}</nowiki></code>.
* Small ratios: <code>{{((}}Infobox Interval{{))}}</code> (the ratio is inferred from page name), <code>{{((}}Infobox Interval{{!}}7/4{{))}}</code>, <code>{{((}}Infobox Interval{{!}}Ratio=7/4{{))}}</code>.
** When use this form? In most cases - whenever both numerator and denominator of the ratio are small enough to fit within Lua numbers as integers. You should not encounter any problems when those are <math>\leq 2^{32}</math>, and you might happen to not encounter any problems when those are <math>\leq 2^{53}</math>. With larger numbers, you are almost guaranteed to get inaccurate results.
** When use this form? In most cases, whenever both numerator and denominator of the ratio are small enough to fit within Lua numbers as integers. You should not encounter any problems when those are <math>\leq 2^{32}</math>, and you might happen to not encounter any problems when those are <math>\leq 2^{53}</math>. With larger numbers, you are almost guaranteed to get inaccurate results.
* Large ratios: <code><nowiki>{{Infobox Interval|Ket=-2 0 0 1}}</nowiki></code>, <code><nowiki>{{Infobox Interval|Monzo=-2 0 0 1}}</nowiki></code>.
* Large ratios: <code>{{((}}Infobox Interval{{!}}Ket=-2 0 0 1}}</nowiki></code>, <code>{{((}}Infobox Interval{{!}}Monzo=-2 0 0 1{{))}}</code>.
** In this form, '''Ratio''' (unless you specify it explicitly, in which case it will be printed as is) and most norms are omitted.
** In this form, '''Ratio''' (unless you specify it explicitly, in which case it will be printed as is) and most norms are omitted.
** When use this form? Whenever numerator or denominator are too large.
** When use this form? Whenever numerator or denominator are too large.
Line 77: Line 77:
| [[Harmonic entropy]]
| [[Harmonic entropy]]
|
|
| Harmonic entropy approximation (Shannon, <math>\sqrt{n\cdot d}</math> weights, <math>200\text{-integer limit}\cap\{x\mid\left|\left|x\right|\right|\leq 100\}</math>). Derived from '''Ratio''', '''Monzo''' or '''Cents'''.
| Harmonic entropy approximation (Shannon, <math>\sqrt{n\cdot d}</math> weights, <math>200\text{-integer limit}\cap\{x\mid\left|\left|x\right|\right|\leq 100\}</math>). Derived from '''Ratio''', '''Monzo''', or '''Cents'''.
|-
|-
| [[Comma|Comma size]]
| [[Comma|Comma size]]
Line 140: Line 140:
* {{modlink}}
* {{modlink}}
* [[Template:Infobox ET]]
* [[Template:Infobox ET]]
* [[xen-calc]] – the according page of that tool gets linked automatically for rational intervals
* [[xen-calc]] &ndash; The according page of that tool gets linked automatically for rational intervals.


<!-- interwiki -->
<!-- interwiki -->
[[de:Vorlage:Infobox Intervall]]
[[de:Vorlage:Infobox Intervall]]