zero_finder_nleqslv {genpwr}R Documentation

Zero finder

Description

Finds zeros of multinomial functions using the nleqslv package

Usage

zero_finder_nleqslv(
  afun,
  veclength,
  tol = 0.4,
  x.start.vals = NULL,
  upper.lim = Inf
)

Arguments

afun

The function to find zeros

veclength

The dimension of the system of equations

tol

The range within which to set start values for the function to use to find zeros

x.start.vals

Optional user defined start values

upper.lim

to be used if there is to be an upper limit to the solution

Value

Predicted zeros of the given equation

Examples

afun <- function(x) {
	y <- numeric(2)
	y[1] <- x[1]^2 + x[2]^2 - 1
	y[2] <- exp(x[1]-1) + x[2]^3 - 1.1
	y
}

zero_finder_nleqslv(afun, veclength = 2)


[Package genpwr version 1.0.4 Index]