Skip to main content

⚠️ This project is deprecated and no longer maintained

PyPI GitHub Actions - CI codecov - Code coverage Read the Docs - Documentation PyPI - Python Version PyPI - License

rootfinding finds roots by bisecting a bracketing interval until the value of the function can be considered sufficiently close to zero. The scheme differs slightly from the implementation of bisection in SciPy: it is better suited for cases where a maximum acceptable residual is a more useful termination criterion than a tolerance for the argument variable, and can lead to fewer function evaluations overall.

The small library also contains functionality to automatically search for a bracket of a root when one is not known. While the library will always start by checking the inputs, it is possible to avoid redundant function calls by providing known values of the function—similarly, objects returned (and exceptions raised) by the library helpfully include function values that may be of interest. rootfinding was first developed as an internal module of our other project Fronts.

To use this library, install rootfinding from PyPI as $ pip install rootfinding. Alternatively, you may copy the rootfinding.py file from the source code directly into your project (you must retain the copyright notice and license).

Documentation is available on Read the Docs.

Metadata

Release files for rootfinding 1.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 rootfinding 1.0.4
File Size Uploaded
rootfinding-1.0.4.tar.gz 12.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rootfinding 1.0.4
File Interpreter ABI Platform
rootfinding-1.0.4-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 19.3 kB

Release files / rootfinding-1.0.4.tar.gz

Download URL rootfinding-1.0.4.tar.gz
Size 12.2 kB
Tags Source
SHA-256 checksum
How to use checksums
53feef844c20d2b03a9ab528798a12a9e467cea535a31da0e9296f700f0866d6
BLAKE2b-256 checksum
How to use checksums
5debcae922ad2c734fc67ee4c3639cba561b772153d9114d76a77dd5bc756b79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / rootfinding-1.0.4-py2.py3-none-any.whl

Download URL rootfinding-1.0.4-py2.py3-none-any.whl
Size 7.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
b53ba77e5a5ffb7de4562b0d4a186a0fada45790b40bd0a9832789dd55993c3c
BLAKE2b-256 checksum
How to use checksums
8f3dbd5bcbbc61e065dc7af710e4a4b2296bba6dad891970cf86ad9a2ce8cb5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

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