diff options
| author | Adrien Hopkins <adrien.p.hopkins@gmail.com> | 2024-11-20 22:08:38 -0500 |
|---|---|---|
| committer | Adrien Hopkins <adrien.p.hopkins@gmail.com> | 2024-11-20 22:08:38 -0500 |
| commit | 29472fc13c4c151fbd432a5a271ff7d0b0af971f (patch) | |
| tree | 39de89e692f9f7bc23a3153d73e0f314dcb65e0e /factor_info.go | |
| parent | 6cba5dc72cda8c7bd527ae1e094a8bf678a8e83c (diff) | |
Add reciprocoal logarithm to non-compact view
Although I have the regular logarithm, its reciprocoal is useful to
determine the length of numbers in a certain radix. Like with the
totative ratio (where both it and its reciprocoal are useful), I showed
both in the regular view and only one in the compact view.
Diffstat (limited to 'factor_info.go')
| -rw-r--r-- | factor_info.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/factor_info.go b/factor_info.go index 8939f5a..637bde2 100644 --- a/factor_info.go +++ b/factor_info.go @@ -139,6 +139,8 @@ func (fi *factorInfo) writeTo(w io.Writer) { low_mtc_est, high_mtc_est) } fmt.Fprintf(w, "Base-2 Logarithm: %.3f\n", fi.Log2) + fmt.Fprintf(w, "Number Length: %.4f×Decimal\n", + 1/math.Log10(float64(fi.Radix))) if len(fi.DigitMap) > 0 { writeDigitMap(w, fi.DigitMap) } |
