signedarea

Calculates the area between the curve and the independent axis according to sign.

Syntax

signedarea(indep_vec, dep_vec)

Argument

indep_vec
The independent vector.
dep_vec
The dependent vector.

Example

Templex Expression Results
{signedarea({0:(2*PI):(PI/24)}, {sin(0:(2*PI):(PI/24))})} 0
A plot of this example is shown below:
Figure 1.


The area where x varies from 0 to π has a positive area. The area where x varies from π to 2 π has a negative area.

Comments

The area on one side of the independent axis is treated as positive area, the area on the other side is treated as negative area. The result is the sum of all subareas.