Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Brent''s method for univariate function optimization

Project description

brent-search

Travis AppVeyor Read the Docs (version)

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

Testing

python -c "import brent_search; brent_search.test()"

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.

Files for brent-search, version 2.0.0
Filename, size File type Python version Upload date Hashes
Filename, size brent-search-2.0.0.tar.gz (7.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page