absarea

The total area between the curve and the independent axis regardless of sign.

Syntax

absarea(indep_vec, dep_vec)

Argument

indep_vec
The independent vector.
dep_vec
The dependent vector.

Example

Templex Expression Result
{absarea(0:(2*PI):(PI/24), sin(0:(2*PI):(PI/24)))} 3.99429
A plot of this example is shown below:


Figure 1. Both areas (x from 0 to π and π to 2 π) are treated as positive areas.

Comments

The area on both sides of the independent axis are treated as positive area. The result is the sum of all subareas.