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

Brent''s method for univariate function optimization

Project description


Travis AppVeyor Read the Docs (version)

Brent's method for univariate function optimization.


from brent_search import brent

def func(x, s):
  return (x - s)**2 - 0.8

r = brent(lambda x: func(x, 0), -10, 10)

The output should be

(0.0, -0.8, 6)


From command line, enter

pip install brent-search


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




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