A package for approximating SciPy functions
Project description
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 SciPycbrt
function 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 SciPycomb
function 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 SciPyperm
function 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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file approxscimate-0.0.3.tar.gz
.
File metadata
- Download URL: approxscimate-0.0.3.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a71178ba2896ec14841a4c5c96967c2fb6b80cf0bb09a53a774843d836daf300 |
|
MD5 | 5c11d4c082bc8ae506b8a4afe4e90134 |
|
BLAKE2b-256 | 45abcf19fe8eab92abe916dd9a16aeff00f43054a80d12339bb40390e7c7b7f9 |
File details
Details for the file approxscimate-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: approxscimate-0.0.3-py3-none-any.whl
- Upload date:
- Size: 16.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b78e835ba27286a9d2334e50c5cd2b9a13d62d009e56f1668de76aaeb6895a2 |
|
MD5 | b2f486d0b507a2ceaaf3f4d9b3d2bff9 |
|
BLAKE2b-256 | 8c4553c3e3d73971e626aef0e5d80b076dacaf75c59c61fe1b4feb6d84a44ec7 |