Template:Primes in edo: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Inthar (talk | contribs)
m "primary" is not the adjective corresponding to "prime number" in English
Xenwolf (talk | contribs)
fallback to module defaults
Line 1: Line 1:
<includeonly>{{#invoke:primes_in_edo|primes_in_edo|edo={{{1|{{{edo|12}}}}}}|columns={{{columns|8}}}|start={{{start|1}}}|prec={{{prec|1}}}|title={{{title|Approximation of prime intervals in {{{1|{{{edo|12}}}|}}} EDO}}}}}</includeonly><noinclude>
<includeonly>{{#invoke:primes_in_edo|primes_in_edo|edo={{{1|{{{edo|12}}}}}}|columns={{{columns|}}}|start={{{start|}}}|prec={{{prec|}}}|title={{{title|Approximation of prime intervals in {{{1|{{{edo|12}}}|}}} EDO}}}}}</includeonly><noinclude>
This template generates a table with the approximations of prime intervals of a given EDO.  
This template generates a table with the approximations of prime intervals of a given EDO.  



Revision as of 10:33, 11 July 2021

This template generates a table with the approximations of prime intervals of a given EDO.

Documentation

Usage

Simple

Normally, it's sufficient to place one line in the article, and set the EDO number accordingly:

{{primes in edo|<EDO number>}}

Advanced

Under certain circumstances, the values for precision (prec) or column count (columns) don't fit in the given context. The template takes up to 5 arguments:

{{primes in edo
| edo = <EDO number>
| columns = <column count>
| start = <start column>
| prec = <decimals of abs error>
| title = <your title>
}}
edo
(this parameter can also be given without the parameter name)
columns
number of primes to include, the default (8) means 2, 3, 5, 7, 11, 13, 17, 19
start
default is 1 (which means the prime 2), set to 2 to skip the octave
prec
precision of absolute error (digits after the decimal point), default is estimated by EDO magnitude
title
default is Approximations of prime intervals in <edo> EDO

Examples

Although the template does also work without any arguments, one argument should be seen as mandatory: the EDO number.

Basic

In most cases it will be sufficient to input just the EDO and nothing else.

{{primes in edo|17}}

Script error: No such module "primes_in_edo".

Advanced

Sometimes you want to see more or skip some lower columns and have to adjust the title

{{primes in edo|19|columns=11|start=2|title=Primes in [[19edo]]}}

Script error: No such module "primes_in_edo".

For large EDOs (318edo in this example) the absolute error gets very small, so stick to the fixed format, we have to add digits after the decimal point. The default precision gets calculated automatically, but if we want to increase it further, we can set prec to a higher value.

{{primes in edo|318|columns=9|start=2}}
{{primes in edo|318|columns=9|start=2|prec=4|title=Same with prec=4}}

Script error: No such module "primes_in_edo". Script error: No such module "primes_in_edo".


See also