diff options
| -rw-r--r-- | README.org | 18 | ||||
| -rw-r--r-- | args.go | 16 | ||||
| -rw-r--r-- | factor_info.go | 16 | ||||
| -rw-r--r-- | factors/digit_map.go | 16 | ||||
| -rw-r--r-- | factors/factorize.go | 16 | ||||
| -rw-r--r-- | factors/mtc.go | 16 | ||||
| -rw-r--r-- | factors/prime_factorization.go | 16 | ||||
| -rw-r--r-- | factors/property_test.go | 16 | ||||
| -rw-r--r-- | factors/score.go | 16 | ||||
| -rw-r--r-- | factors/slices.go | 16 | ||||
| -rw-r--r-- | factors/table_test.go | 16 | ||||
| -rw-r--r-- | factors/totative.go | 16 | ||||
| -rw-r--r-- | factors/type.go | 16 | ||||
| -rw-r--r-- | factors/uintpow.go | 16 | ||||
| -rw-r--r-- | print_digit_map.go | 16 |
15 files changed, 242 insertions, 0 deletions
@@ -86,3 +86,21 @@ The MTC is an estimate of how difficult it is to learn a radix's multiplication The radix's natural logarithm indicates its information density - how much information it can fit into a digit. Radices with higher logarithms will be able to count higher with fewer digits, and approximations will be more accurate for the same number of decimal places. Specifically, numbers in radix a will have ln(b)/ln(a) times as many digits as numbers in radix b. For example, ln(20)/ln(10)≈1.30, so decimal numbers will have around 30% more digits than vigesimal numbers. +** Copyright & Contact Info +radix_info: gives some information about number radices +Copyright (C) 2023 Adrien Hopkins + +This program is free software: you can redistribute it and/or modify +it under the terms of version 3 of the GNU General Public License +as published by the Free Software Foundation. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <https://www.gnu.org/licenses/>. + +I can be found at <adrien.p.hopkins@gmail.com>. +I accept emailed patches there (more info at https://git-send-email.io/)! @@ -1,3 +1,19 @@ +/* This script is part of radix_info. + Copyright (C) 2023 Adrien Hopkins + + This program is free software: you can redistribute it and/or modify + it under the terms of version 3 of the GNU General Public License + as published by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + package main import ( diff --git a/factor_info.go b/factor_info.go index f3193b5..1988b2c 100644 --- a/factor_info.go +++ b/factor_info.go @@ -1,3 +1,19 @@ +/* This script is part of radix_info. + Copyright (C) 2023 Adrien Hopkins + + This program is free software: you can redistribute it and/or modify + it under the terms of version 3 of the GNU General Public License + as published by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + package main import ( diff --git a/factors/digit_map.go b/factors/digit_map.go index 7c56a1e..3baf468 100644 --- a/factors/digit_map.go +++ b/factors/digit_map.go @@ -1,3 +1,19 @@ +/* This script is part of radix_info. + Copyright (C) 2023 Adrien Hopkins + + This program is free software: you can redistribute it and/or modify + it under the terms of version 3 of the GNU General Public License + as published by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + package factors import "fmt" diff --git a/factors/factorize.go b/factors/factorize.go index 16cd810..2a3f143 100644 --- a/factors/factorize.go +++ b/factors/factorize.go @@ -1,3 +1,19 @@ +/* This script is part of radix_info. + Copyright (C) 2023 Adrien Hopkins + + This program is free software: you can redistribute it and/or modify + it under the terms of version 3 of the GNU General Public License + as published by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + package factors // Factors returns a number's factors as a slice. diff --git a/factors/mtc.go b/factors/mtc.go index 4d40396..db3e670 100644 --- a/factors/mtc.go +++ b/factors/mtc.go @@ -1,3 +1,19 @@ +/* This script is part of radix_info. + Copyright (C) 2023 Adrien Hopkins + + This program is free software: you can redistribute it and/or modify + it under the terms of version 3 of the GNU General Public License + as published by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + package factors // MTC returns the multiplication table complexity of a radix n. diff --git a/factors/prime_factorization.go b/factors/prime_factorization.go index f758448..2f0cde0 100644 --- a/factors/prime_factorization.go +++ b/factors/prime_factorization.go @@ -1,3 +1,19 @@ +/* This script is part of radix_info. + Copyright (C) 2023 Adrien Hopkins + + This program is free software: you can redistribute it and/or modify + it under the terms of version 3 of the GNU General Public License + as published by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + package factors import ( diff --git a/factors/property_test.go b/factors/property_test.go index 7072050..a4a1463 100644 --- a/factors/property_test.go +++ b/factors/property_test.go @@ -1,3 +1,19 @@ +/* This script is part of radix_info. + Copyright (C) 2023 Adrien Hopkins + + This program is free software: you can redistribute it and/or modify + it under the terms of version 3 of the GNU General Public License + as published by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + package factors import ( diff --git a/factors/score.go b/factors/score.go index b1da963..9d2d03b 100644 --- a/factors/score.go +++ b/factors/score.go @@ -1,3 +1,19 @@ +/* This script is part of radix_info. + Copyright (C) 2023 Adrien Hopkins + + This program is free software: you can redistribute it and/or modify + it under the terms of version 3 of the GNU General Public License + as published by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + package factors import ( diff --git a/factors/slices.go b/factors/slices.go index f2462cf..8b70575 100644 --- a/factors/slices.go +++ b/factors/slices.go @@ -1,3 +1,19 @@ +/* This script is part of radix_info. + Copyright (C) 2023 Adrien Hopkins + + This program is free software: you can redistribute it and/or modify + it under the terms of version 3 of the GNU General Public License + as published by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + package factors import "sort" diff --git a/factors/table_test.go b/factors/table_test.go index 828d80b..c7eeb24 100644 --- a/factors/table_test.go +++ b/factors/table_test.go @@ -1,3 +1,19 @@ +/* This script is part of radix_info. + Copyright (C) 2023 Adrien Hopkins + + This program is free software: you can redistribute it and/or modify + it under the terms of version 3 of the GNU General Public License + as published by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + package factors import ( diff --git a/factors/totative.go b/factors/totative.go index 9dde4b0..ff3a4ab 100644 --- a/factors/totative.go +++ b/factors/totative.go @@ -1,3 +1,19 @@ +/* This script is part of radix_info. + Copyright (C) 2023 Adrien Hopkins + + This program is free software: you can redistribute it and/or modify + it under the terms of version 3 of the GNU General Public License + as published by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + package factors // Totient calculates the number of numbers between 1 and n inclusive diff --git a/factors/type.go b/factors/type.go index 3e116af..7c11bf5 100644 --- a/factors/type.go +++ b/factors/type.go @@ -1,3 +1,19 @@ +/* This script is part of radix_info. + Copyright (C) 2023 Adrien Hopkins + + This program is free software: you can redistribute it and/or modify + it under the terms of version 3 of the GNU General Public License + as published by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + package factors // The set of all colossaly abundant numbers that are small enough diff --git a/factors/uintpow.go b/factors/uintpow.go index 50bfe9d..e598213 100644 --- a/factors/uintpow.go +++ b/factors/uintpow.go @@ -1,3 +1,19 @@ +/* This script is part of radix_info. + Copyright (C) 2023 Adrien Hopkins + + This program is free software: you can redistribute it and/or modify + it under the terms of version 3 of the GNU General Public License + as published by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + package factors func uintpow(base, exponent uint) uint { diff --git a/print_digit_map.go b/print_digit_map.go index 3e59c8c..1bbfa8b 100644 --- a/print_digit_map.go +++ b/print_digit_map.go @@ -1,3 +1,19 @@ +/* This script is part of radix_info. + Copyright (C) 2023 Adrien Hopkins + + This program is free software: you can redistribute it and/or modify + it under the terms of version 3 of the GNU General Public License + as published by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + package main import ( |
