User:Xenwolf/Template:Primes in EDO: Difference between revisions
start template development |
now all deltas but 0 signed |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
* | {{{!}} class="wikitable center-all" | ||
* | {{!}}- | ||
{{!}}+ Approximation of primary intervals in {{{1|{{{steps|12}}}}}} EDO | |||
{{!}}- | |||
! colspan="2" {{!}} Prime number | |||
! 2 | |||
! 3 | |||
! 5 | |||
! 7 | |||
! 11 | |||
! 13 | |||
! 17 | |||
! 19 | |||
! 23 | |||
{{!}}- | |||
! rowspan="2" {{!}} Error | |||
! absolute ([[cent|¢]]) | |||
{{!}} {{signed|{{#number_format:{{#expr: 1200*(((ln(2)/ln(2))*{{{1|{{{steps|12}}}}}} round 0)-(ln(2)/ln(2))*{{{1|{{{steps|12}}}}}})/{{{1|{{{steps|12}}}}}}}}|1}} }} | |||
{{!}} {{signed|{{#number_format:{{#expr: 1200*(((ln(3)/ln(2))*{{{1|{{{steps|12}}}}}} round 0)-(ln(3)/ln(2))*{{{1|{{{steps|12}}}}}})/{{{1|{{{steps|12}}}}}}}}|1}} }} | |||
{{!}} {{signed|{{#number_format:{{#expr: 1200*(((ln(5)/ln(2))*{{{1|{{{steps|12}}}}}} round 0)-(ln(5)/ln(2))*{{{1|{{{steps|12}}}}}})/{{{1|{{{steps|12}}}}}}}}|1}} }} | |||
{{!}} {{signed|{{#number_format:{{#expr: 1200*(((ln(7)/ln(2))*{{{1|{{{steps|12}}}}}} round 0)-(ln(7)/ln(2))*{{{1|{{{steps|12}}}}}})/{{{1|{{{steps|12}}}}}}}}|1}} }} | |||
{{!}} {{signed|{{#number_format:{{#expr: 1200*(((ln(11)/ln(2))*{{{1|{{{steps|12}}}}}} round 0)-(ln(11)/ln(2))*{{{1|{{{steps|12}}}}}})/{{{1|{{{steps|12}}}}}}}}|1}} }} | |||
{{!}} {{signed|{{#number_format:{{#expr: 1200*(((ln(13)/ln(2))*{{{1|{{{steps|12}}}}}} round 0)-(ln(13)/ln(2))*{{{1|{{{steps|12}}}}}})/{{{1|{{{steps|12}}}}}}}}|1}} }} | |||
{{!}} {{signed|{{#number_format:{{#expr: 1200*(((ln(17)/ln(2))*{{{1|{{{steps|12}}}}}} round 0)-(ln(17)/ln(2))*{{{1|{{{steps|12}}}}}})/{{{1|{{{steps|12}}}}}}}}|1}} }} | |||
{{!}} {{signed|{{#number_format:{{#expr: 1200*(((ln(19)/ln(2))*{{{1|{{{steps|12}}}}}} round 0)-(ln(19)/ln(2))*{{{1|{{{steps|12}}}}}})/{{{1|{{{steps|12}}}}}}}}|1}} }} | |||
{{!}} {{signed|{{#number_format:{{#expr: 1200*(((ln(23)/ln(2))*{{{1|{{{steps|12}}}}}} round 0)-(ln(23)/ln(2))*{{{1|{{{steps|12}}}}}})/{{{1|{{{steps|12}}}}}}}}|1}} }} | |||
{{!}}- | |||
! [[Relative error{{!}}relative]] (%) | |||
{{!}} {{signed|{{#number_format:{{#expr: 100*(((ln(2)/ln(2))*{{{1|{{{steps|12}}}}}} round 0)-(ln(2)/ln(2))*{{{1|{{{steps|12}}}}}} )}}|1}} }} | |||
{{!}} {{signed|{{#number_format:{{#expr: 100*(((ln(3)/ln(2))*{{{1|{{{steps|12}}}}}} round 0)-(ln(3)/ln(2))*{{{1|{{{steps|12}}}}}} )}}|1}} }} | |||
{{!}} {{signed|{{#number_format:{{#expr: 100*(((ln(5)/ln(2))*{{{1|{{{steps|12}}}}}} round 0)-(ln(5)/ln(2))*{{{1|{{{steps|12}}}}}} )}}|1}} }} | |||
{{!}} {{signed|{{#number_format:{{#expr: 100*(((ln(7)/ln(2))*{{{1|{{{steps|12}}}}}} round 0)-(ln(7)/ln(2))*{{{1|{{{steps|12}}}}}} )}}|1}} }} | |||
{{!}} {{signed|{{#number_format:{{#expr: 100*(((ln(11)/ln(2))*{{{1|{{{steps|12}}}}}} round 0)-(ln(11)/ln(2))*{{{1|{{{steps|12}}}}}} )}}|1}} }} | |||
{{!}} {{signed|{{#number_format:{{#expr: 100*(((ln(13)/ln(2))*{{{1|{{{steps|12}}}}}} round 0)-(ln(13)/ln(2))*{{{1|{{{steps|12}}}}}} )}}|1}} }} | |||
{{!}} {{signed|{{#number_format:{{#expr: 100*(((ln(17)/ln(2))*{{{1|{{{steps|12}}}}}} round 0)-(ln(17)/ln(2))*{{{1|{{{steps|12}}}}}} )}}|1}} }} | |||
{{!}} {{signed|{{#number_format:{{#expr: 100*(((ln(19)/ln(2))*{{{1|{{{steps|12}}}}}} round 0)-(ln(19)/ln(2))*{{{1|{{{steps|12}}}}}} )}}|1}} }} | |||
{{!}} {{signed|{{#number_format:{{#expr: 100*(((ln(23)/ln(2))*{{{1|{{{steps|12}}}}}} round 0)-(ln(23)/ln(2))*{{{1|{{{steps|12}}}}}} )}}|1}} }} | |||
{{!}}- | |||
! colspan="2" {{!}} Degree ([[octave reduction{{!}}reduced]]) | |||
{{!}} {{#expr: ((ln(2)/ln(2))*{{{1|{{{steps|12}}}}}} round 0)}} ({{#expr: ((ln(2)/ln(2))*{{{1|{{{steps|12}}}}}} round 0) mod {{{1|{{{steps|12}}}}}} }}) | |||
{{!}} {{#expr: ((ln(3)/ln(2))*{{{1|{{{steps|12}}}}}} round 0)}} ({{#expr: ((ln(3)/ln(2))*{{{1|{{{steps|12}}}}}} round 0) mod {{{1|{{{steps|12}}}}}} }}) | |||
{{!}} {{#expr: ((ln(5)/ln(2))*{{{1|{{{steps|12}}}}}} round 0)}} ({{#expr: ((ln(5)/ln(2))*{{{1|{{{steps|12}}}}}} round 0) mod {{{1|{{{steps|12}}}}}} }}) | |||
{{!}} {{#expr: ((ln(7)/ln(2))*{{{1|{{{steps|12}}}}}} round 0)}} ({{#expr: ((ln(7)/ln(2))*{{{1|{{{steps|12}}}}}} round 0) mod {{{1|{{{steps|12}}}}}} }}) | |||
{{!}} {{#expr: ((ln(11)/ln(2))*{{{1|{{{steps|12}}}}}} round 0)}} ({{#expr: ((ln(11)/ln(2))*{{{1|{{{steps|12}}}}}} round 0) mod {{{1|{{{steps|12}}}}}} }}) | |||
{{!}} {{#expr: ((ln(13)/ln(2))*{{{1|{{{steps|12}}}}}} round 0)}} ({{#expr: ((ln(13)/ln(2))*{{{1|{{{steps|12}}}}}} round 0) mod {{{1|{{{steps|12}}}}}} }}) | |||
{{!}} {{#expr: ((ln(17)/ln(2))*{{{1|{{{steps|12}}}}}} round 0)}} ({{#expr: ((ln(17)/ln(2))*{{{1|{{{steps|12}}}}}} round 0) mod {{{1|{{{steps|12}}}}}} }}) | |||
{{!}} {{#expr: ((ln(19)/ln(2))*{{{1|{{{steps|12}}}}}} round 0)}} ({{#expr: ((ln(19)/ln(2))*{{{1|{{{steps|12}}}}}} round 0) mod {{{1|{{{steps|12}}}}}} }}) | |||
{{!}} {{#expr: ((ln(23)/ln(2))*{{{1|{{{steps|12}}}}}} round 0)}} ({{#expr: ((ln(23)/ln(2))*{{{1|{{{steps|12}}}}}} round 0) mod {{{1|{{{steps|12}}}}}} }}) | |||
{{!}}} | |||
<noinclude> | |||
<big>'''Don't use in production!'''</big> | |||
todo: template that generates a table of prime approximations of the equal temperament characterized by two arguments | todo: template that generates a table of prime approximations of the equal temperament characterized by two arguments | ||
* | * parameter: number of EDO '''steps''' (default 12) | ||
</noinclude> | </noinclude> |