This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients mark.dickinson, rhettinger, serhiy.storchaka, stutzbach, tim.peters
Date 2019-06-02.10:54:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1559472897.43.0.110105466613.issue37132@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-06-02 10:54:57serhiy.storchakasetrecipients: + serhiy.storchaka, tim.peters, rhettinger, mark.dickinson, stutzbach
2019-06-02 10:54:57serhiy.storchakasetmessageid: <1559472897.43.0.110105466613.issue37132@roundup.psfhosted.org>
2019-06-02 10:54:57serhiy.storchakalinkissue37132 messages
2019-06-02 10:54:57serhiy.storchakacreate