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
Release history Release notifications | RSS feed
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 details)
Built Distribution
File details
Details for the file pydagogy-brent-0.0.1.tar.gz
.
File metadata
- Download URL: pydagogy-brent-0.0.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.12 Linux/5.4.0-113-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99d660ca4b9f1e99bc7161b15616db0bd58f249c8a368a2f52ddd0d0172607df |
|
MD5 | 1a1f87c2bf789dadc53c61b7a0f01616 |
|
BLAKE2b-256 | fe8d6bb6cca1d8984b27143a46b0481e1149391e13704dcd4a9f05149e19f2e7 |
File details
Details for the file pydagogy_brent-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: pydagogy_brent-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.12 Linux/5.4.0-113-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53f60218c89e06abf18681af0708cfd017f49368b3942583db723441b36666ea |
|
MD5 | eb475dd01d0466463fbca5adcaea2adc |
|
BLAKE2b-256 | abaa7205ce3a6cfafe13f35eb0429f0447502947df3729089d19c6072c88d810 |