Description Usage Arguments Details Value Author(s) Examples
Approximates the derivative of a function at the input by numerical methods.
1 2 3 4 5 6 7 | numderiv(f, x, eps=1e-8, type=c('forward','central','backward'),...)
## S4 method for signature 'ANY,array'
numderiv(f, x, eps = 1e-08, type = c("forward", "central", "backward"), ...)
## S4 method for signature 'ANY,madness'
numderiv(f, x, eps = 1e-08, type = c("forward", "central", "backward"), ...)
|
f |
a function, to be evaluated at and near |
x |
array, matrix, or |
eps |
the 'epsilon', a small value added or subtracted from |
type |
the type of first difference, case-insensitive, substrings ok. |
... |
arguments passed on to |
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.
A matrix if x
is numeric; a madness
object if
x
is a madness
object.
Steven E. Pav shabbychef@gmail.com
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.