Template:Harmonics in equal/doc: Difference between revisions
m Fredg999 moved page Template:Primes in equal/doc to Template:Harmonics in equal/doc: Not just for primes |
No edit summary |
||
| Line 25: | Line 25: | ||
<syntaxhighlight lang="text"> | <syntaxhighlight lang="text"> | ||
{{ | {{harmonics in equal | ||
| steps = <number of steps> | | steps = <number of steps> | ||
| num = <numerator> | | num = <numerator> | ||
| Line 58: | Line 58: | ||
<syntaxhighlight lang="text"> | <syntaxhighlight lang="text"> | ||
{{ | {{harmonics in equal|31}} | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{ | {{harmonics in equal|31}} | ||
For tritave or other prime divisions, two arguments is enough: | For tritave or other prime divisions, two arguments is enough: | ||
<syntaxhighlight lang="text"> | <syntaxhighlight lang="text"> | ||
{{ | {{harmonics in equal|13|3}} | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{ | {{harmonics in equal|13|3}} | ||
| Line 72: | Line 72: | ||
<syntaxhighlight lang="text"> | <syntaxhighlight lang="text"> | ||
{{ | {{harmonics in equal|15|7|3}} | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{ | {{harmonics in equal|15|7|3}} | ||
==== Advanced ==== | ==== Advanced ==== | ||
| Line 81: | Line 81: | ||
<syntaxhighlight lang="text"> | <syntaxhighlight lang="text"> | ||
{{ | {{harmonics in equal|13|3|columns=11|start=2|title=Primes in [[13edt]]}} | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{ | {{harmonics in equal|13|3|columns=11|start=2|title=Primes in [[13edt]]}} | ||
For large divisions ([[313edo]] in this example) the absolute error gets very small. The default precision gets calculated automatically, but if we want to increase it even further, we can set <code>prec</code> to a higher value. This is not recommended generally. | For large divisions ([[313edo]] in this example) the absolute error gets very small. The default precision gets calculated automatically, but if we want to increase it even further, we can set <code>prec</code> to a higher value. This is not recommended generally. | ||
<syntaxhighlight lang="text"> | <syntaxhighlight lang="text"> | ||
{{ | {{harmonics in equal|313|columns=9|start=2}} | ||
{{ | {{harmonics in equal|313|columns=9|start=2|prec=5|title=Same with prec=5}} | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{ | {{harmonics in equal|313|columns=9|start=2}} | ||
{{ | {{harmonics in equal|313|columns=9|start=2|prec=5|title=Same with prec=5}} | ||