Brent's method for univariate function optimization
Project description
brent-search
Brent's method for univariate function optimization.
Example
from brent_search import brent
def func(x, s):
return (x - s)**2 - 0.8
r = brent(lambda x: func(x, 0), -10, 10)
print(r)
The output should be
(0.0, -0.8, 6)
Install
From command line, enter
pip install brent-search
Authors
Acknowledgements
- http://people.sc.fsu.edu/~jburkardt/c_src/brent/brent.c
- Numerical Recipes 3rd Edition: The Art of Scientific Computing
- https://en.wikipedia.org/wiki/Brent%27s_method
License
This project is licensed under the MIT License.
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
Built Distribution
File details
Details for the file brent_search-2.0.2.tar.gz
.
File metadata
- Download URL: brent_search-2.0.2.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
a2725cd016f8f9cc809e5fddb714b8eb600b3410f8a221f18438c009e4b91a2d
|
|
MD5 |
665152b0f7ca33449e1765452568a965
|
|
BLAKE2b-256 |
97bb73f05b58727918613cc476645e55680301c5b719c8ab928c7fca739ad3a7
|
Provenance
The following attestation bundles were made for brent_search-2.0.2.tar.gz
:
Publisher:
release.yml
on limix/brent-search
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
brent_search-2.0.2.tar.gz
-
Subject digest:
a2725cd016f8f9cc809e5fddb714b8eb600b3410f8a221f18438c009e4b91a2d
- Sigstore transparency entry: 159300835
- Sigstore integration time:
-
Permalink:
limix/brent-search@f1d499bf19ac3ab1f4e829330dd29f933fdc5e63
-
Branch / Tag:
refs/tags/v2.0.2
- Owner: https://github.com/limix
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
release.yml@f1d499bf19ac3ab1f4e829330dd29f933fdc5e63
-
Trigger Event:
push
-
Statement type:
File details
Details for the file brent_search-2.0.2-py3-none-any.whl
.
File metadata
- Download URL: brent_search-2.0.2-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
07cbec5034dc7f66325da078716e11dc51539c73e467e8b22dbe28d9614001a3
|
|
MD5 |
193aaca5eb03f1c7045125b0759844ed
|
|
BLAKE2b-256 |
c9e663de248d13a637a6f1924672479be82724eb24cd3705dcf958319e5c90c2
|
Provenance
The following attestation bundles were made for brent_search-2.0.2-py3-none-any.whl
:
Publisher:
release.yml
on limix/brent-search
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
brent_search-2.0.2-py3-none-any.whl
-
Subject digest:
07cbec5034dc7f66325da078716e11dc51539c73e467e8b22dbe28d9614001a3
- Sigstore transparency entry: 159300837
- Sigstore integration time:
-
Permalink:
limix/brent-search@f1d499bf19ac3ab1f4e829330dd29f933fdc5e63
-
Branch / Tag:
refs/tags/v2.0.2
- Owner: https://github.com/limix
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
release.yml@f1d499bf19ac3ab1f4e829330dd29f933fdc5e63
-
Trigger Event:
push
-
Statement type: