Skip to main content

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 

Metadata

Release files for pydagogy-brent 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pydagogy-brent 0.0.1
File Size Uploaded
pydagogy-brent-0.0.1.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pydagogy-brent 0.0.1
File Interpreter ABI Platform
pydagogy_brent-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.4 kB

Release files / pydagogy-brent-0.0.1.tar.gz

Download URL pydagogy-brent-0.0.1.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
99d660ca4b9f1e99bc7161b15616db0bd58f249c8a368a2f52ddd0d0172607df
BLAKE2b-256 checksum
How to use checksums
fe8d6bb6cca1d8984b27143a46b0481e1149391e13704dcd4a9f05149e19f2e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.12 Linux/5.4.0-113-generic

Release files / pydagogy_brent-0.0.1-py3-none-any.whl

Download URL pydagogy_brent-0.0.1-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
53f60218c89e06abf18681af0708cfd017f49368b3942583db723441b36666ea
BLAKE2b-256 checksum
How to use checksums
abaa7205ce3a6cfafe13f35eb0429f0447502947df3729089d19c6072c88d810
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.12 Linux/5.4.0-113-generic

Release history Release notifications | RSS feed

This release

0.0.1 This release

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