A method for numerical integration
Usage
integrate(
f,
lower,
upper,
...,
max_subdivisions = 100L,
relative_accuracy = .Machine$double.eps^0.25,
absolute_accuracy = relative_accuracy,
work_size = 4 * max_subdivisions,
stop.on.error = TRUE
)Arguments
- f
an R function taking a numeric first argument and returning a numeric vector of the same length. Returning a non-finite element will generate an error.
- lower, upper
the limits of integration. Can be infinite.
- ...
additional arguments to be passed to
f.- max_subdivisions
the maximum number of subintervals.
- relative_accuracy
relative accuracy requested.
- absolute_accuracy
absolute accuracy requested.
- stop.on.error
logical. If true (the default) an error stops the function. If false some errors will give a result with a warning in the
messagecomponent.
See also
Other test-helper:
Integrator-class,
catch_what()
