Group Abstract Group Abstract

Message Boards Message Boards

0
|
1.7K Views
|
3 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Using JacobiSymbol vs KroneckerSymbol

Posted 1 year ago
POSTED BY: Paolo Xausa
3 Replies
Posted 1 year ago

Yes, thank you, but JacobiSymbol[2,4] (for example) works and returns the correct value:

JacobiSymbol[2,4] == KroneckerSymbol[2,4]

I can't find any difference between the two functions (with the added bonus that JacobiSymbol is faster).

POSTED BY: Paolo Xausa
POSTED BY: Mariusz Iwaniuk

From help pages of KroneckerSymbol:

KroneckerSymbol is the generalization of the Jacobi symbol for all integers

  jacobi[n_, m_] := KroneckerSymbol[n, m] /; (OddQ[m] && Positive[m]);
  Table[jacobi[2, m], {m, 1, 9}]

  (*{1, jacobi[2, 2], -1, jacobi[2, 4], -1, jacobi[2, 6], 1, jacobi[2, 8], 1}*)

Regards M.I.

POSTED BY: Mariusz Iwaniuk
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard