Rdocumentation
powered by
Learn R Programming
Kmisc (version 0.5.0)
simp: Area Under the Curve with Simpson's Rule
Description
This function computes the area under the curve using Simpson's (composite) rule, for a function
f(x)
evaluated over equally spaced points
x
.
Usage
simp(x, y)
Arguments
x
A vector of values
x
.
y
A vector of values
f(x)
.