quadrature: Compute numerical quadrature

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/quadrature.R

Description

Compute numerical quadrature

Usage

1
quadrature(f, method = qnwtrap, n, ...)

Arguments

f

A function, integrand.

method

A function, specifying the quadrature method.

n

A scalar, number of nodes.

...

Other parameters passed to the selected method.

Available method options are: qnwequi, qnwlege, qnwlogn, qnwnorm, qnwsimp, qnwtrap, qnwunif

Value

The integral of function f.

Author(s)

Randall Romero-Aguilar

References

Miranda, Fackler 2002 Applied Computational Economics and Finance, ch.5

See Also

Other quadrature functions: qnwequi; qnwlege; qnwlogn; qnwnorm; qnwsimp; qnwtrap; qnwunif

Examples

1

randall-romero/CompEconR documentation built on May 26, 2019, 10:56 p.m.