Message344269
The math module contains as function for floating-point numbers, as wells as functions for integer only numbers: factorial(), gcd(). Yet few integer specific functions was added in 3.8: isqrt(), perm(), comb().
The proposed PR adds the new imath module, adds into it old functions factorial() and gcd() and moves new functions. It also adds two additional functions: as_integer_ratio() and ilog2().
There are plans for adding more integer functions: divide_and_round(), is_prime(), primes(), but the work in progress. |
|
| Date |
User |
Action |
Args |
| 2019-06-02 10:54:57 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, tim.peters, rhettinger, mark.dickinson, stutzbach |
| 2019-06-02 10:54:57 | serhiy.storchaka | set | messageid: <[email protected]> |
| 2019-06-02 10:54:57 | serhiy.storchaka | link | issue37132 messages |
| 2019-06-02 10:54:57 | serhiy.storchaka | create | |
|