Jacobi symbol: Difference between revisions
Content added Content deleted
(Formatting) |
|||
Line 15: | Line 15: | ||
=={{header|AWK}}== |
=={{header|AWK}}== |
||
{{trans|Go}} |
|||
<lang AWK> |
<lang AWK> |
||
# syntax: GAWK -f JACOBI_SYMBOL.AWK |
# syntax: GAWK -f JACOBI_SYMBOL.AWK |
||
# converted from Go |
|||
BEGIN { |
BEGIN { |
||
max_n = 29 |
max_n = 29 |
||
Line 84: | Line 84: | ||
29 1 -1 -1 1 1 1 1 -1 1 -1 -1 -1 1 -1 -1 1 -1 -1 -1 1 -1 1 1 1 1 -1 -1 1 0 1 |
29 1 -1 -1 1 1 1 1 -1 1 -1 -1 -1 1 -1 -1 1 -1 -1 -1 1 -1 1 1 1 1 -1 -1 1 0 1 |
||
</pre> |
</pre> |
||
=={{header|Factor}}== |
=={{header|Factor}}== |
||
The <code>jacobi</code> word already exists in the <code>math.extras</code> vocabulary. See the implementation [https://docs.factorcode.org/content/word-jacobi%2Cmath.extras.html here]. |
The <code>jacobi</code> word already exists in the <code>math.extras</code> vocabulary. See the implementation [https://docs.factorcode.org/content/word-jacobi%2Cmath.extras.html here]. |