sintegral: Integration using Simpson's method.

sintegralR Documentation

Integration using Simpson's method.

Description

Modified version of function sintegral from library Bolstad.

Usage

sintegral(fx, x, n.pts = 16, type = "int")

Arguments

fx

Values at x (see below) of the function to be integrated.

x

Values at which function fx has been evaluated.

n.pts

The number of points to be used in integration. If x contains more than n.pts then n.pts will be set to length(x).

type

if equal to 'cdf' a list comprising x-values and cdf values at each x-value is returned, else the integral over the range of x is returned.


david-borchers/hmltm documentation built on Oct. 29, 2023, 9:07 p.m.