cs.numeric-20220606
توضیحات
A few ad hoc numeric alogrithms: `factors` and `primes`.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | cs.numeric-20220606 |
| نام | cs.numeric |
| نسخه کتابخانه | 20220606 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Cameron Simpson |
| ایمیل نویسنده | Cameron Simpson <cs@cskk.id.au> |
| آدرس صفحه اصلی | https://bitbucket.org/cameron_simpson/css/commits/all |
| آدرس اینترنتی | https://pypi.org/project/cs.numeric/ |
| مجوز | GNU General Public License v3 or later (GPLv3+) |
A few ad hoc numeric alogrithms: `factors` and `primes`.
*Latest release 20220606*:
New intif(f): int(f) if that equals f, otherwise f.
## Function `factors(n)`
Generator yielding the prime factors of `n` in order from lowest to highest.
## Function `intif(f: float)`
Return `int(f)` if that equals `f`, otherwise `f`.
## Function `primes()`
Generator yielding the primes in order starting at 2.
# Release Log
*Release 20220606*:
New intif(f): int(f) if that equals f, otherwise f.
*Release 20190309*:
Superficial changes.
*Release 20150311.2*:
Added RST doco for cs.numeric.
*Release 20150311*:
Initial release with primes() and factors().
نحوه نصب
نصب پکیج whl cs.numeric-20220606:
pip install cs.numeric-20220606.whl
نصب پکیج tar.gz cs.numeric-20220606:
pip install cs.numeric-20220606.tar.gz