summaryrefslogtreecommitdiff
path: root/radix_info.go
diff options
context:
space:
mode:
authorAdrien Hopkins <adrien.p.hopkins@gmail.com>2023-09-07 13:15:40 -0500
committerAdrien Hopkins <adrien.p.hopkins@gmail.com>2023-09-07 13:15:40 -0500
commit3cfb1fdcbe83c1ee4adf8e370f0922ca41c472c6 (patch)
tree2695b9decec500c1c5137b79e8fd83a95961c2a0 /radix_info.go
parent7fa8cf9666cd3427dd078bb4a5fdb9fa30c94b09 (diff)
Add ability to display specific totative digits
Instead of just saying how many totative digits there are, the new -t flag allows the user to determine the specific digits. All totatives will end in one of these digits, and all primes are either factors or totatives. This feature is not useful in comparing radices, only learning one you have already chosen. Because there can be so many totatives (p - 1 of them for primes!), this is not displayed by default. The digit map (without -f) gives this information, and beyond its range every number will have more than 8 totatives, so do not use this flag if you only want the count.
Diffstat (limited to 'radix_info.go')
-rw-r--r--radix_info.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/radix_info.go b/radix_info.go
index 9845572..f495905 100644
--- a/radix_info.go
+++ b/radix_info.go
@@ -12,7 +12,7 @@ func main() {
}
if err == nil {
- factorInfo := getFactorInfo(args.Radix, args.FullMap, args.ExactMTCLarge)
+ factorInfo := getFactorInfo(args)
if args.Compact {
factorInfo.writeToCompact(os.Stdout)
} else {