Optimization (cmlabs.optimize)

The cmlabs.optimize module provides a collection of optimization algorithms.

Optimization

find_root_brackets

Find the root brackets of a function.

bisect

Bisection method for finding roots.

newton

Newton's method for finding roots.

secant

Secant method for finding roots.

Tests

test_root

Test the root finding function.

test_find_root_brackets_from_docs_example

Test the find_root_brackets function from the documentation example.

test_bisect_from_docs_example

Test the bisect function from the documentation example.

test_newton_from_docs_example

Test the newton function from the documentation example.

test_secant_from_docs_example

Test the secant function from the documentation example.