findroot | R Documentation |
Find Root
findroot_bisect(f, lower, upper, args)
findroot_brent(f, lower, upper, args)
f |
Function for which a root is desired. |
lower |
Lower limit of search interval. Must be finite. |
upper |
Upper limit of search interval. Must be finite. |
args |
List of additional arguments from the function |
A list with the form of a findroot_result
described in section
"Root-Finding" of the package vignette.
f = function(x) { x^2 - 1 }
args = findroot_args()
findroot_bisect(f, 0, 10, args)
findroot_brent(f, 0, 10, args)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.