Description Usage Arguments Examples
View source: R/golden_search.R
Find the minimum of a function using the Golded-section search algorithm
1 | golden_search(x, a, b, tol = 1e-04)
|
x |
function with one argument |
a |
min value of search values |
b |
max value of search values |
tol |
tolerance level. Default is |
1 2 3 4 | contfunc = function(x){
-exp(-x) * sin(x)
}
golden_search(contfunc, a = 0, b = 1.5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.