Jacobi symbol: Difference between revisions

Content added Content deleted
Line 232: Line 232:
<lang J>
<lang J>
NB. direct translation of the Lua program found
NB. direct translation of the Lua program found
NB. at the wikipedia entry incorporated here as comment.
NB. at the wikipedia entry incorporated here in comments.
NB. &> makes jacobi work atomically. rank 0.


NB.function jacobi(n, k)
NB.function jacobi(n, k)
jacobi=: 4 :0&>
jacobi=: dyad define every


k=. x NB. k is the left argument
k=. x NB. k is the left argument
Line 347: Line 346:
+------+--------------------------------------------------------------------------------------+
+------+--------------------------------------------------------------------------------------+
</pre>
</pre>

=={{header|Java}}==
=={{header|Java}}==
<lang java>
<lang java>