simpson: Simpson's rule for numrical integration.

Description Usage Arguments Details Value Author(s)

View source: R/numericalintegration.R

Description

Implementation of Simpson's rule for the numerical integration of uni- and bivariate functions.

Usage

1
simpson(f, a, b, n = 5, ...)

Arguments

f

bivariate function.

a

lower bound of the grid.

b

upper bound of the grid.

n

grid size.

...

trick for evaluating the second parameter in case a bivariate functions was supplied.

Details

details follow

Value

vector or matrix of function evaluations use sum to obtain the integrand.

Author(s)

Maarten van Iterson


Rommelio-coli/SSPA documentation built on Dec. 18, 2021, 11 a.m.