skip to navigation
skip to content

brent-search 1.0.29

Brent's method for univariate function optimization

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)


The recommended way of installing it is via conda

conda install -c conda-forge brent-search

An alternative way would be via pip

pip install brent-search

Running the tests

After installation, you can test it

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

as long as you have pytest.



This project is licensed under the MIT License - see the License file for details.

File Type Py Version Uploaded on Size
brent-search-1.0.29.tar.gz (md5) Source 2017-09-03 7KB
brent_search-1.0.29-py2-none-any.whl (md5) Python Wheel py2 2017-09-03 9KB
brent_search-1.0.29-py3-none-any.whl (md5) Python Wheel py3 2017-09-03 9KB