optim_midp | R Documentation |
From initial values, find the minimum by iterating the process oftaking midpoints and comparing.
optim_midp(f,init1,init2,n = 100)
f |
Function to take min |
init1 |
1st initial value |
init2 |
2nd initial value |
init2 must be greater than init1
Hao Li
Matlab Youhuasuanfa
optim
optim_midp((function(x) x^2),init1 = -.1,init2 = 11)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.