return channels

This commit is contained in:
filifa
2025-09-05 21:23:25 -04:00
parent 0603ee9879
commit e4bd9aa661
2 changed files with 27 additions and 23 deletions

View File

@@ -39,10 +39,8 @@ func pell(cmd *cobra.Command, args []string) {
cobra.CheckErr(pellCoeff + " is a perfect square")
}
hch := make(chan *big.Int)
kch := make(chan *big.Int)
go gaussianBrackets(a0, big.NewInt(1), repetend, hch)
go gaussianBrackets(big.NewInt(1), big.NewInt(0), repetend, kch)
hch := gaussianBrackets(a0, big.NewInt(1), cycle(repetend))
kch := gaussianBrackets(big.NewInt(1), big.NewInt(0), cycle(repetend))
for {
h, k := <-hch, <-kch