Metadata-Version: 2.1
Name: cs.numeric
Version: 20220606
Summary: A few ad hoc numeric alogrithms: `factors` and `primes`.
Home-page: https://bitbucket.org/cameron_simpson/css/commits/all
Author: Cameron Simpson
Author-email: Cameron Simpson <cs@cskk.id.au>
License: GNU General Public License v3 or later (GPLv3+)
Project-URL: URL, https://bitbucket.org/cameron_simpson/css/commits/all
Keywords: python2,python3
Classifier: Development Status :: 6 - Mature
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Description-Content-Type: text/markdown

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().
