integrateIt: Performs numerical integration

Description Usage Arguments Value Examples

Description

Performs numerical integration

Creates a generic for integrateIt, using that as the default value.

Usage

1
2
3

Arguments

type

The type of integration to perform - either "Simp" or "Trap".

x

A vector of x-values.

y

A vector of y-values.

start

The starting value for the integral.

end

The ending value for the integral.

Value

An object of the proper type, integrated.

An object of the proper type, integrated.

Examples

1
2
integrateIt("Trap", 1:10, 1:10, 1, 10)
integrateIt("Trap", 1:10, 1:10, 1, 10)

alexjweil/integrateIt documentation built on May 10, 2019, 8:54 a.m.