From 018c8c53238449217b825d30487d253a26aa60bd Mon Sep 17 00:00:00 2001 From: Adrien Hopkins Date: Thu, 14 Sep 2023 18:29:12 -0500 Subject: Bump version to 1.0.0-beta & gofmt --- args.go | 2 +- factor_info.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/args.go b/args.go index 2adb076..3b2bbdd 100644 --- a/args.go +++ b/args.go @@ -7,7 +7,7 @@ import ( "strconv" ) -const ProgramVersion = "1.0.0-alpha+dev" +const ProgramVersion = "1.0.0-beta" // The arguments to this program type args struct { diff --git a/factor_info.go b/factor_info.go index 767a9bf..becc08a 100644 --- a/factor_info.go +++ b/factor_info.go @@ -103,7 +103,7 @@ func (fi *factorInfo) writeTo(w io.Writer) { fmt.Fprintln(w, "Factors:", fi.Factors) fmt.Fprintf(w, "Factor Utility Score: %.4f\n", fi.Score) fmt.Fprintf(w, "Regular Utility Score: %.4f\n", - float64(fi.Radix) / float64(fi.Totient)) + float64(fi.Radix)/float64(fi.Totient)) fmt.Fprintln(w, "2345 Rank:", fi.BasicRank) if fi.TotativeDigits != nil { fmt.Fprintf(w, "Totative Digits: %v (%.3f%%)\n", @@ -130,7 +130,7 @@ func (fi *factorInfo) writeTo(w io.Writer) { func (fi *factorInfo) writeToCompact(w io.Writer) { fmt.Fprintf(w, "%d = %s | σ(r)/r: %.2f | r/φ(r): %.2f\n", - fi.Radix, fi.PrimeFactorization, fi.Score, 1 / fi.TotativeRatio) + fi.Radix, fi.PrimeFactorization, fi.Score, 1/fi.TotativeRatio) fmt.Fprintf(w, "%s | ", typeAbbrev(fi.Type)) if fi.MTC != nil { fmt.Fprintf(w, "MTC: %d | ", *fi.MTC) -- cgit v1.2.3