Skip to contents

Algorithms for solve() on an IntervalNonlinearProblem(), beside ITP(), Bisection(), Brent() and Falsi(): Alefeld() is the enclosing method of Alefeld, Potra and Shi with inverse cubic interpolation; ModAB() starts with bisection and switches to the Anderson-Bjork regula falsi once the function looks linear on the bracket; Ridder() is Ridder's exponential fit; Muller(middle) is Muller's quadratic interpolation from the two ends and a middle point (the midpoint by default), which needs no sign change.

Usage

Alefeld()

ModAB()

Ridder()

Muller(middle = NULL)

Arguments

middle

The third starting point of Muller().

Value

An algorithm object.

Examples

prob <- IntervalNonlinearProblem(function(u, p) u^3 - 2, c(0, 2))
solve(prob, Alefeld())$u
#> [1] 1.259921
solve(prob, ModAB())$u
#> [1] 1.259921
solve(prob, Ridder())$u
#> [1] 1.259921
solve(prob, Muller())$u
#> [1] 1.259921