summaryrefslogtreecommitdiff
path: root/factor_info.go
AgeCommit message (Collapse)Author
2023-09-04Add totative digit count to non-compact outputAdrien Hopkins
This is done for a few reasons: - Allow the user to easily determine the exact value of the totative ratio - This information is important when the digit map isn't accessible (for radices >36) - More consistency with factors I don't show the exact values of totatives like I do with factors because they're far more common - the superior highly composite (i.e. one of the numbers with the highest factor count) number 720720 has 240 factors and 138240 totatives, for example.
2023-08-30Raise precision in non-compact displayAdrien Hopkins
The non-compact display is intended as a "full info" display, so it makes sense to have more precision in these numbers. The compact display is unchanged.
2023-08-30Add compact displayAdrien Hopkins
2023-08-30Extract factor info into separate structAdrien Hopkins
This achieves two things: - Decouples my code by putting the printing code into its own file - Makes it easier to make alternate ways of printing (e.g. a compact mode)