Skip to main content

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

License

This project is licensed under the MIT License.

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

brent_search-2.0.2.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

brent_search-2.0.2-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

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

Hashes for brent_search-2.0.2.tar.gz
Algorithm Hash digest
SHA256 a2725cd016f8f9cc809e5fddb714b8eb600b3410f8a221f18438c009e4b91a2d
MD5 665152b0f7ca33449e1765452568a965
BLAKE2b-256 97bb73f05b58727918613cc476645e55680301c5b719c8ab928c7fca739ad3a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for brent_search-2.0.2.tar.gz:

Publisher: release.yml on limix/brent-search

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for brent_search-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 07cbec5034dc7f66325da078716e11dc51539c73e467e8b22dbe28d9614001a3
MD5 193aaca5eb03f1c7045125b0759844ed
BLAKE2b-256 c9e663de248d13a637a6f1924672479be82724eb24cd3705dcf958319e5c90c2

See more details on using hashes here.

Provenance

The following attestation bundles were made for brent_search-2.0.2-py3-none-any.whl:

Publisher: release.yml on limix/brent-search

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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