powered by
Numerical quadrature of functions of one variable over [0, infinity) with the double exponential formula.
deformula.zeroinf( f, ..., zero.eps = 1e-12, rel.tol = 1e-08, start.divisions = 8, max.iter = 12 )
An R function taking a numeric first argument.
Additional arguments to be passed to <U+2018>f<U+2019>.
A threshold value to be zero.
A relative accuracy requested.
An integer. The initial number of subintervals.
An integer for the maximum number of iterations to increase subintervals.
A list with components;
A value for integral.
A vector of subintervals.
A vector of weights.
A vector of subintervals for trapezoid integral.
A value of subinterval.
OK or a string for the error message.
# NOT RUN { f <- function(x, a) exp(-a*x) deformula.zeroinf(f, a=0.1) # }
Run the code above in your browser using DataLab