Skip to main content

Find roots of scalar functions

Project description

⚠️ 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.

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

rootfinding-1.0.4.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rootfinding-1.0.4-py2.py3-none-any.whl (7.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file rootfinding-1.0.4.tar.gz.

File metadata

  • Download URL: rootfinding-1.0.4.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for rootfinding-1.0.4.tar.gz
Algorithm Hash digest
SHA256 53feef844c20d2b03a9ab528798a12a9e467cea535a31da0e9296f700f0866d6
MD5 eae1aeb88d014aaa0973689b6ed7a356
BLAKE2b-256 5debcae922ad2c734fc67ee4c3639cba561b772153d9114d76a77dd5bc756b79

See more details on using hashes here.

File details

Details for the file rootfinding-1.0.4-py2.py3-none-any.whl.

File metadata

  • Download URL: rootfinding-1.0.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for rootfinding-1.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b53ba77e5a5ffb7de4562b0d4a186a0fada45790b40bd0a9832789dd55993c3c
MD5 d8d9face5b552d5ab8942783c329329d
BLAKE2b-256 8f3dbd5bcbbc61e065dc7af710e4a4b2296bba6dad891970cf86ad9a2ce8cb5e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page