Find the root of a monotone function on a discrete grid of value using dichotomic search
1 2 |
fn |
[function] objective function to minimize in absolute value. |
grid |
[vector] possible minimizers. |
increasing |
[logical] is the function fn increasing? |
check |
[logical] should the program check that fn takes a different sign for the first vs. the last value of the grid? |
tol |
[numeric] the absolute convergence tolerance. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.