Description Usage Arguments Value Author(s) References See Also Examples
Compute numerical quadrature
1 | quadrature(f, method = qnwtrap, n, ...)
|
f |
A function, integrand. |
method |
A function, specifying the quadrature method. |
n |
A scalar, number of nodes. |
... |
Other parameters passed to the selected Available |
The integral of function f
.
Randall Romero-Aguilar
Miranda, Fackler 2002 Applied Computational Economics and Finance, ch.5
Other quadrature functions: qnwequi
;
qnwlege
; qnwlogn
;
qnwnorm
; qnwsimp
;
qnwtrap
; qnwunif
1 | quadrature(function(x) sin(x)^2,qnwtrap,50,0,pi)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.