Description Usage Arguments Details Value Author(s) See Also Examples
The integrateIt package approximates the area under a curve.
Creates objects of either class 'Trapezoid' or 'Simpson'
1 | integrateIt(x, y, a, b, choose_calc)
|
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. |
An object of the these classes has the following slots:
An object of class 'trapezoid' or 'simpson' containing
x |
|
y |
|
a |
|
b |
|
calc |
Joseph Ludmir: jludmir@wustl.edu
Joseph Ludmir: jludmir@wustl.edu
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.