lazyRecursion
Usage Example:
>>> from lazyRecursion import RecursiveSequence
>>>
>>> fibonacci = RecursiveSequence(
... induction_start={0: 1, 1:1},
... relative_indices=[-2,-1],
... recursion_function=lambda x1,x2: x1+x2,
... cache_file='fib_cache.json' # (optional) deactivates caching if missing
... )
>>> fibonacci[:10]
[1, 1, 2, 3, 5, 8, 13, 21, 34, 55]
>>> linear = RecursiveSequence(
... induction_start={0:0},
... relative_indices=[-1],
... recursion_function=lambda x: x+5,
... )
>>> linear[:5]
[0, 5, 10, 15, 20]
Metadata
Release files for lazyRecursion 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lazyRecursion-0.1.1.tar.gz | 2.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lazyRecursion-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.4 kB
Release files / lazyRecursion-0.1.1.tar.gz
| Download URL | lazyRecursion-0.1.1.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
88b7f50de8d028825bd808d4a2f7c5118d8eaf87a83558703c0be1423d51766b
|
|
BLAKE2b-256 checksum How to use checksums |
fa707628473a9deda8420cdd388778bb429cde15da2fabf4933be9ce7cde76b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
|
Release files / lazyRecursion-0.1.1-py3-none-any.whl
| Download URL | lazyRecursion-0.1.1-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bf4b44a7bda03ddf7a23b1ef0f548bb63732d60c46a519df1427d550f2ca096f
|
|
BLAKE2b-256 checksum How to use checksums |
58f04a8d1e3bbbc463cb0d3c1efa82530b7abc3e05481c9fa6de8336b16f5f68
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
|