Skip to content
Skip to main navigation
Skip to first column
Skip to second column
Singular
Search
Download 4-3-0
Try Online
Online Manual
Graphical Interface
Report Bugs
Books
Teams
Join Us
Home
Online Manual
D.12.2.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"; Jacobi(13580555397810650806,5792543); ==> 1
Main
Home
News
Publications
How to cite Singular
Community
Forum
Trac
Events
Mailing List
Blog
System
New Libraries
Source Code
Open Tasks
Third-party software
Misc
Links
Contact
Impressum
Internal