Usage
D(formula, ..., .hstep = NULL, add.h.control = FALSE)antiD(formula, ..., lower.bound = 0, force.numeric = FALSE)
makeAntiDfun(.function, .wrt, from, .tol = .Machine$double.eps^0.25)
numerical_integration(f, wrt, av, args, vi.from, ciName = "C", .tol)
Arguments
formula
A formula. The right side specifies the variable(s) with which to
carry out the integration or differentiation. On the left side should be
an expression or a function that returns a numerical vector
of the same length as its argument. The expressi
...
Default values to be given to unbound variables in the expression expr
.
See examples.#' Note that in creating anti-derivative functions,
default values of "from" and "to" can be assigned. They are to be written with
the name of the variable
.hstep
horizontal distance between points used for secant slope
calculation in numerical derivatives.
add.h.control
logical indicating whether the returned derivative function
should have an additional parameter for setting .hstep. Meaningful only for numerical
derivatives.
lower.bound
for numerical integration only, the lower bound used
force.numeric
If TRUE
, a numerical integral is performed even when a
symbolic integral is available.
.function
function to be integrated
.wrt
character string naming the variable of integration
from
default value for the lower bound of the integral region
wrt
character string naming a variable: the var. of integration
av
a list of the arguments passed to the function calling this
args
default values (if any) for parameterss
vi.from
the the lower bound of the interval of integration
ciName
character string giving the name of the symbol for the constant of integration
.tol
Numerical tolerance. See stats::integrate