Message362135
> Should something like the following go in the standard library, most likely in the math module?
I'm not keen. Granted that the math module has exceeded its original remit of "wrappers for libm", but even so, I'd prefer to try to limit it to a basic set of building blocks. For me, things like CRT and xgcd go beyond that.
I'd suggest that for now, the right place for this sort of thing would be a PyPI library for elementary number theory. That library could include probably primality testing, basic factoring, continued fractions, primitive root finding, and other elementary number theory topics. |
|
Date |
User |
Action |
Args |
2020-02-17 10:47:40 | mark.dickinson | set | recipients:
+ mark.dickinson, Dennis Sweeney |
2020-02-17 10:47:40 | mark.dickinson | set | messageid: <1581936460.5.0.947870116998.issue39657@roundup.psfhosted.org> |
2020-02-17 10:47:40 | mark.dickinson | link | issue39657 messages |
2020-02-17 10:47:39 | mark.dickinson | create | |
|