midpoint {SSPA} | R Documentation

## Midpoint rule for numerical integration.

### Description

Implementation of the midpoint rule for the numerical integration of uni- and bivariate functions.

### Usage

    midpoint(f, a, b, n, ...)

### 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

[Package SSPA version 2.27.1 Index]