Find roots of scalar functions.
Project description
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.
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 rootfinding-1.0.3.tar.gz
.
File metadata
- Download URL: rootfinding-1.0.3.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39b503ce0a72153f06cb7489187aa0e6951c3918141516892be833e4b35a7dc6 |
|
MD5 | c5d1e6f228b4b4e404cdf113ffcec19a |
|
BLAKE2b-256 | 88c6124953772226f5e450c078fe6c1d9650d1e443819f2d9563c37596edd49e |
File details
Details for the file rootfinding-1.0.3-py2.py3-none-any.whl
.
File metadata
- Download URL: rootfinding-1.0.3-py2.py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b689d6a36b38629d60ce397443bdf19dd1b0032a8c5f71d707af0aba252087e9 |
|
MD5 | f310fa6e4051ce8b8c716573d3b41cc7 |
|
BLAKE2b-256 | 6d417851d5dc7e5007819532c5f0997ccf00fee34ce84ecd00aa3bcb8beaeb95 |