Skip to main content

Univariate function optimization based on Brent's method.

Project description

# brent-search

Univariate function optimization based on Brent’s method.

## Getting Started

`python >>> from brent_search import brent >>> >>> def func(x, s): ... return (x - s)**2 - 0.8 >>> >>> brent(lambda x: func(x, 0), -10, 10) (0.0, -0.8, 6) `

### Installing

Via pip ` pip install brent_search `

or via [Conda](http://conda.pydata.org/docs/index.html) ` conda install -c conda-forge brent_search `

## Running the tests

After installation, you can test it ` python -c "import brent_search; brent_search.test()" ` if you have [pytest](http://pytest.org) installed.

## Authors

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details

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-1.0.11.tar.gz (6.5 kB view hashes)

Uploaded Source

Supported by

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