evalFunc2D: evaluates a bivariate function in a list with the function...

Description Usage Arguments Details Value Author(s) Examples

View source: R/evalFunc2D.R

Description

evaluates a bivariate function in a list with the function name and named parameters.

Usage

1
evalFunc2D(f, x, y, p = 1)

Arguments

f

A list with the function name and named parameters. See examples.

x

Independent variable.

y

Vector where f will be evaluated. If f is not a list, x, y is not used.

p

Non-negative integer. The index where the name (f) is.

Details

x and y go to the first and second input parameter of the function f.

Value

If is a list, the evaluation of f at points x,y. If f is not a list, the result is the input f.

Author(s)

Francisco Mendoza-Torres (mentofran@gmail.com)

Examples

1
2
ss <- function(x, y, m = 5) {m * x + y}
evalFunc2D(f = list(f = "outer", FUN = "ss", m = 10), x = 1:4, y = 6:7)

mathphysmx/bernstein documentation built on Sept. 3, 2019, 12:57 p.m.