midpoint_composite: Midpoint Composite rule

Description Usage Arguments Value

View source: R/midpoint_composite.R

Description

This function implements the midpoint composite rule for numerical integration

Usage

1
midpoint_composite(f, a, b, n)

Arguments

f

a function

a

the lower bound

b

the upper bound

n

the amount of intervals we divide the interval [a, b] into

Value

an estimation of the integral of f over [a, b]


nschaefer1211/OSE documentation built on Dec. 31, 2020, 12:59 a.m.