findroot: Find Root

findrootR Documentation

Find Root

Description

Find Root

Usage

findroot_bisect(f, lower, upper, args)

findroot_brent(f, lower, upper, args)

Arguments

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 findroot_args.

Value

A list with the form of a findroot_result described in section "Root-Finding" of the package vignette.

Examples

f = function(x) { x^2 - 1 }
args = findroot_args()
findroot_bisect(f, 0, 10, args)
findroot_brent(f, 0, 10, args)


fntl documentation built on April 4, 2025, 1:53 a.m.