expand help text
This commit is contained in:
parent
d372ab1391
commit
9fbabbc08c
14
cmd/crt.go
14
cmd/crt.go
|
|
@ -113,8 +113,18 @@ func crt(cmd *cobra.Command, args []string) {
|
|||
// crtCmd represents the crt command
|
||||
var crtCmd = &cobra.Command{
|
||||
Use: "crt -r R R [R ...] -m M M [M ...]",
|
||||
Short: "Solve a system of linear congruences",
|
||||
Long: `Solve a system of linear congruences.`,
|
||||
Short: "Solve a system of linear congruences with the Chinese remainder theorem",
|
||||
Long: `Solve a system of linear congruences by applying the Chinese remainder theorem.
|
||||
|
||||
To use, provide the remainder R of each congruence, along with the corresponding modulus M for each congruence. For instance,
|
||||
|
||||
mathtools crt -r 2 3 2 -m 3 5 7
|
||||
|
||||
will solve the system of congruences
|
||||
x = 2 (mod 3)
|
||||
x = 3 (mod 5)
|
||||
x = 2 (mod 7)
|
||||
`,
|
||||
Run: crt,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue