deformula.moneone {deformula}R Documentation

Integration of one-dimensitonal functions over finite iterval with the double exponential formula.

Description

Numerical quadrature of functions of one variable over [lower, upper] with the double exponential formula.

Usage

deformula.moneone(f, upper, lower, ...,
  zero.eps = 1.0e-12, rel.tol = 1.0e-8,
  start.divisions = 8, max.iter = 12)

Arguments

f

an integrand function for integral.

lower, upper

the limits of integration.

...

additional arguments to be passed to ‘f’.

zero.eps

a threshold value to be zero.

rel.tol

a value for relative tolerance.

start.divisions

the initial number of divides.

max.iter

an integer for the maximum number of iterations to increase divides.

Value

returns a list with components;

value

an value for integral.

x

a vector of subintervals.

w

a vector of weights.

t

a vector of subintervals for trapezoid integral.

h

a value of subinterval.

message

OK or a string for the error message.

See Also

deformula.zeroinf

Examples


f <- function(x, a) exp(-a*x)

deformula.moneone(f, 1, 0, a=0.1)


[Package deformula version 0.1.1 Index]