integrateIt: integrateIt

Description Usage Arguments Details Value Author(s) See Also Examples

Description

The integrateIt package approximates the area under a curve.

Creates objects of either class 'Trapezoid' or 'Simpson'

Usage

1
integrateIt(x, y, a, b, choose_calc)

Arguments

x

The x values of the function you use.

y

The y values of the function you use.

a

The start of the integration which is a point on the x-axis.

b

The end of the integration which is a different point on the x-axis.

choose_calc

A character string to determine which sum you decide to calculate.

Details

An object of the these classes has the following slots:

Value

An object of class 'trapezoid' or 'simpson' containing

x
y
a
b
calc

Author(s)

Joseph Ludmir: jludmir@wustl.edu

Joseph Ludmir: jludmir@wustl.edu

See Also

trapezoid, simpson

Examples

1
2
3
4
5
6
x <- c(1,2,3,4)
y <- 2*x
a <- 0
b <- 5
integrateIt(x, y, a, b, "t")
integrateIt(x, y, a, b, "s")

jludmir88/Midterm documentation built on May 19, 2019, 12:48 p.m.