Template:Primes in edo/doc: Difference between revisions

Xenwolf (talk | contribs)
Usage: update prec description, add simple usage
Sintel (talk | contribs)
No edit summary
Line 52: Line 52:
{{primes in edo|19|columns=11|start=2|title=Primes in [[19edo]]}}
{{primes in edo|19|columns=11|start=2|title=Primes in [[19edo]]}}


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. This can be achieved by setting the parameter <code>prec</code> to a value higher than 1 (which is the default); compare the following two tables:
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 <code>prec</code> to a higher value.


<syntaxhighlight lang="text">
<syntaxhighlight lang="text">
{{primes in edo|318|columns=9|start=2}}
{{primes in edo|318|columns=9|start=2}}
{{primes in edo|318|columns=9|start=2|prec=2|title=Same with prec=2}}
{{primes in edo|318|columns=9|start=2|prec=4|title=Same with prec=4}}
</syntaxhighlight>
</syntaxhighlight>
{{primes in edo|318|columns=9|start=2}}
{{primes in edo|318|columns=9|start=2}}
{{primes in edo|318|columns=9|start=2|prec=2|title=Same with prec=2}}
{{primes in edo|318|columns=9|start=2|prec=4|title=Same with prec=4}}