integral

The integral function.

Syntax

integral(indep_vec, dep_vec)

Argument

indep_vec
The independent vector used for integration.
dep_vec
The vector expression to be integrated.

Example

Templex Expression Result
integral( {0 : 10 : 2},sin{0 : 10 : 2} ) 0, 0.909297, 1.06179, 0.0255744, 0.735517, 1.18085
Curve Math Vectors Result
x = c1.x

y = integral(c1.x, c1.y)

Given c1, a curve is created which is the indefinite integral of c1.

Comments

The integral function returns the definite integral of a curve. The resultant vector is the integral of the curve formed by indep_vec and dep_vec. indep_vec and dep_vec must have the same number of points. Integration is performed using the Trapezoid Rule.