Skip to content
Skip to main navigation
Skip to first column
Skip to second column
Singular
Download 3-1-3
Online Manual
Get Help
Report Bugs
Books
Teams
Join Us
Home
Online Manual
D.11.3.8 Jacobi
Procedure from library
crypto.lib
(see
crypto_lib
).
Usage:
Jacobi(a,n);
Return:
the generalized Legendre symbol
Note:
if n is an odd prime then Jacobi(a,n)=0,1,-1 if n|a, a=x^2 mod n,else
Example:
LIB "crypto.lib"; ring R = 0,x,dp; Jacobi(13580555397810650806,5792543); ==> 1
Main
Home
News
Publications
How to cite Singular
Community
Forum
Trac
Events
Internal
System
New Libraries
SVN Repository
Third-party software
Misc
Links
Contact
Impressum