rename var

This commit is contained in:
filifa 2025-08-11 23:39:14 -04:00
parent c537b3dc71
commit def7e7fa35
1 changed files with 4 additions and 4 deletions

View File

@ -27,11 +27,11 @@ import (
var extended bool
func computeBezouts(bezouts []big.Int, x, y *big.Int) {
for i, c := range bezouts {
for i, b := range bezouts {
if i == len(bezouts)-1 {
bezouts[i].Set(y)
} else {
bezouts[i].Mul(&c, x)
bezouts[i].Mul(&b, x)
}
}
}
@ -59,8 +59,8 @@ func gcd(cmd *cobra.Command, args []string) {
fmt.Print(z)
if extended {
for _, c := range bezouts {
fmt.Printf(" %s", &c)
for _, b := range bezouts {
fmt.Printf(" %s", &b)
}
}
fmt.Println()