ApproxSciMate
A python library for approximating SciPy functions with different levels of accuracy. The library is intended to bring awareness to the energy usage of computer systems, and to give users a choice in how much they consume.
Read the descriptions of the functions and their levels of approximation below, pick what is best for your use case.
Functions
cbrt(n, level=0)
Calculates the cube root of the provided number n with the accuracy specified at the level.
level = 0: The default SciPycbrtfunction providing maximum accuracy.level = 1: Halley's method for approximating cube roots, for moderate accuracy.level = 2: Newton's method for approximating cube roots, for low accuracy.
comb(n, k, level=0)
Calculates the amount of possible selections of k items from a set of size n where the order of selection does not matter. Approximates the value based on the defined level of accuracy.
level = 0: The default SciPycombfunction providing maximum accuracy.level = 1: The approximated lower bound of the calculation.level = 2: The approximated upper bound of the calculation.level = 3: Uses Stirling's method of approximating factorials which converges to the real value when n is very large.
perm(n, k, level=0)
Calculates the amount of possible selections of k items from a set of size n where the order of selection does matter. Approximates the value based on the defined level of accuracy.
level = 0: The default SciPypermfunction providing maximum accuracy.level = 1: The approximated lower bound of the calculation.level = 2: The approximated upper bound of the calculation.level = 3: Uses Stirling's method of approximating factorials which converges to the real value when n is very large.
Metadata
Release files for approxscimate 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| approxscimate-0.0.4.tar.gz | 15.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| approxscimate-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.6 kB
Release files / approxscimate-0.0.4.tar.gz
| Download URL | approxscimate-0.0.4.tar.gz |
|---|---|
| Size | 15.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
55cbda7c122b208c433fc08ace34cb563d30882a36fcb13b4b036ff5d42a607b
|
|
BLAKE2b-256 checksum How to use checksums |
e348202f5da172b183f14d810fdaf0d473b4f1506198470da445d3137667a20a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.4
|
Release files / approxscimate-0.0.4-py3-none-any.whl
| Download URL | approxscimate-0.0.4-py3-none-any.whl |
|---|---|
| Size | 16.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
211a406e0586731f36640c2a72a3a21d0b06d05fbc95c15896c722156bcf2133
|
|
BLAKE2b-256 checksum How to use checksums |
c5b4050bde516262c651e304efb94271f24b5101710f42f69755738bf7b84eb9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.4
|