Skip to main content

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 SciPy cbrt 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 SciPy comb 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 SciPy perm 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.

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)

Source distribution for approxscimate 0.0.4
File Size Uploaded
approxscimate-0.0.4.tar.gz 15.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for approxscimate 0.0.4
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page