add more help text

This commit is contained in:
filifa
2025-09-17 21:02:05 -04:00
parent 4b4858c54f
commit 9e6f648f0b
14 changed files with 126 additions and 42 deletions

View File

@@ -51,8 +51,16 @@ func jacobi(cmd *cobra.Command, args []string) {
var jacobiCmd = &cobra.Command{
Use: "jacobi -a A -n N",
Short: "Compute the Jacobi symbol",
Long: `Compute the Jacobi symbol (a | n).`,
Run: jacobi,
Long: `Compute the Jacobi symbol (a | n).
The Jacobi symbol is useful for studying quadratic residues. a is a quadratic residue modulo n if there exists a value x such that
x^2 = a (mod n)
If a is a quadratic residue modulo n and gcd(a, n) = 1, then (a | n) = 1.
If (a | n) = -1, then a is a quadratic nonresidue modulo n.
However, (a | n) = 1 does not guarantee that a is a quadratic residue modulo n.`,
Run: jacobi,
}
func init() {