summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrien Hopkins <adrien.p.hopkins@gmail.com>2023-09-04 17:49:35 -0500
committerAdrien Hopkins <adrien.p.hopkins@gmail.com>2023-09-04 18:03:36 -0500
commit934d4f8c74928d946adfca5c9a22fecd7ea47c92 (patch)
tree802699ec35e7ef6bc72a31c308a821be40bb724f
parent0e58327b195fa4926ba6977f48c7f535ed17d933 (diff)
Remove 2345 Score from compact output
The compact output attempts to maximize the power-to-weight ratio of this program, and the 2345 Score does not do this: - It can already be easily determined from the prime factorization and decimal radix, or trivially determined from the digit map. - It does not take mixed radices (the radices you'll need to use bases large enough to not show a digit map) into account. - Although a big part of the 2345 Rank is strict improvements, some of the decisions made in its design were necessarily arbitrary. The alternatives give a more objective view. The normal output is about showing everything worth showing, and the 2345 score is still useful there (especially for making sense of the resulting complexity), so it is not removed from there.
-rw-r--r--factor_info.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/factor_info.go b/factor_info.go
index 93cb9d2..6a19173 100644
--- a/factor_info.go
+++ b/factor_info.go
@@ -100,8 +100,8 @@ func (fi *FactorInfo) WriteTo(w io.Writer) {
}
func (fi *FactorInfo) WriteToCompact(w io.Writer) {
- fmt.Fprintf(w, "%d = %s | σ(n)/n: %.2f | τ(n)/n: %.3f | 2345: %s\n",
- fi.Radix, fi.PrimeFactorization, fi.Score, fi.TotativeRatio, fi.BasicRank)
+ fmt.Fprintf(w, "%d = %s | σ(n)/n: %.2f | τ(n)/n: %.3f\n",
+ fi.Radix, fi.PrimeFactorization, fi.Score, fi.TotativeRatio)
fmt.Fprintf(w, "Ln: %.2f", fi.Ln)
if fi.MTC != nil {
fmt.Fprintf(w, " | MTC: %d", *fi.MTC)