Template:Primes in edo/doc: Difference between revisions
→Usage: update prec description, add simple usage |
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. | 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= | {{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= | {{primes in edo|318|columns=9|start=2|prec=4|title=Same with prec=4}} |