## S3 method for class 'ANY,array':
numderiv(f, x, eps = 1e-08, type = c("forward",
"central", "backward"), ...)
## S3 method for class 'ANY,madness':
numderiv(f, x, eps = 1e-08, type = c("forward",
"central", "backward"), ...)
Arguments
f
a function, to be evaluated at and near x.
x
array, matrix, or madness object.
eps
the 'epsilon', a small value added or subtracted from x to
compute the first differences.
type
the type of first difference, case-insensitive, substrings ok.
...
arguments passed on to f.
Value
A matrix if x is numeric; a madness object if
x is a madness object.
Details
For a multivariate-valued function of multivariate
data, approximates the derivative at a point via the
forward, central, or backward first differences,
returning a madness object.