summaryrefslogtreecommitdiff
path: root/factors/digit_map.go
AgeCommit message (Collapse)Author
2023-11-12Add per-file copyright notices & contact infoAdrien Hopkins
This is the safest thing to do to ensure my software is free while avoiding legal trouble ... hopefully, I'm not a lawyer!
2023-10-09factors: Give all exported members proper godocAdrien Hopkins
2023-09-13factors: Remove most panicsAdrien Hopkins
Panics are not the best way of handling errors in Go. I've replaced panics with default values whenever a sensible one exists. Factors(0) does not have a sensible default value (as every number is a factor of zero), so it still panics.
2023-09-05Alter backing values of enum typesAdrien Hopkins
The backing constants of NumberType and TotativeType have been changed so that they can be compared (based on how desirable they are, more desirable categories are given higher values), and so that I can add new values in between without changing the constants.
2023-09-04Increase detail of digit map neighboursAdrien Hopkins
It now distinguishes between omega (factors of r - 1), alpha (factors of r + 1) and the rest. The previous categorization determined whether or not totatives and semitotatives have simple patterns; this new categorization determines which simple patterns they follow)
2023-08-30Add digit map calculationAdrien Hopkins
This is not in the output yet, but it will be soon - printing it is another task since I want colours in my output.