New submission from Serhiy Storchaka <storchaka+cpyt...@gmail.com>:

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.

----------
components: Library (Lib)
messages: 344269
nosy: mark.dickinson, rhettinger, serhiy.storchaka, stutzbach, tim.peters
priority: normal
severity: normal
status: open
title: Add a module for integer related math functions
type: enhancement
versions: Python 3.8

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue37132>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to