find.finite.nw: Try to Find a Finite Value for a function 'f', and suppress...

Description Usage Arguments Value See Also

View source: R/findFinite.R

Description

Given is a unary function f and a coordinate x1 as well as a value x2. The general goal is to find an x value for which f becomes finite and which is as close as possible to x1 from the range min(x1,x2)...max(x1,x2). If f(x1) is finite, return c(x1, f(x1). Otherwise, try to find a value t within the interval delimited by x1 and x2 for which f takes on a finite value, then return c(t, f(t). If no such value can be discovered, return c(x1, f(x1). This function will produce no warnings, at the cost of slower performance (see find.finite).

Usage

1
find.finite.nw(x1, x2, f)

Arguments

x1

the x coordinate at which we want to evaluate f (and also the first interval limit)

x2

the second interval limit, should be either larger or smaller than x1

f

the unary function

Value

a tuple x, f(x), which results from the attempt to find a finite function value

See Also

find.finite


thomasWeise/utilizeR documentation built on May 30, 2019, 11:48 a.m.