Skip to main content

Brent's algorithm

Project description

Brent algorithm

To install

Brent's algorithm requires Python 3.8 and the rich library.

To install the library, run:

pip install pydagogy-brent

Then run the following in a Python shell:

from pydagogy_brent import Settings, brent
import math
settings = Settings(x_rel_tol=1e-12, x_abs_tol=1e-12, y_tol=1e-12, verbose=True)
f = math.cos
brent(f, 0.0, 3.0, settings)

To develop

We use the Poetry dependency management system.

We use VS Code, the Black/isort/pylint tools. To install them, run:

poetry install 

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

pydagogy-brent-0.0.1.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

pydagogy_brent-0.0.1-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

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