diff options
| author | Adrien Hopkins <adrien.p.hopkins@gmail.com> | 2023-09-14 18:29:12 -0500 |
|---|---|---|
| committer | Adrien Hopkins <adrien.p.hopkins@gmail.com> | 2023-09-14 18:29:12 -0500 |
| commit | 018c8c53238449217b825d30487d253a26aa60bd (patch) | |
| tree | cd396bbe104ff18039f71e09b718aa364643f09f | |
| parent | f657d4257e6b39a3899a2ebef8f30f99ebfb313f (diff) | |
Bump version to 1.0.0-beta & gofmtv1.0.0b
| -rw-r--r-- | args.go | 2 | ||||
| -rw-r--r-- | factor_info.go | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -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) |
