CAREA

Purpose:

Calculates the area of a closed loop series.

Syntax:

CAREA(series)

series

-

Optional. A series. Defaults to the current Window.

Alternate Syntax:

CAREA(xseries, yseries)

xseries

-

Optional. A series. Defaults to the X values of the current Window.

yseries

-

Optional. A series. Defaults to the Y values of the current Window.

Returns:

A scalar, the closed loop area..

Example:

W1: gsin(1000, 1/1000, 1)

W2: gcos(1000, 1/1000, 1)

W3: xy(w1, w2)

W4: {carea(w3)}

 

W3 contains a circular series with a radius of 1.0. W4 contains the value 3.14593, the approximate value of π.

Example:

W1: 3 * gsin(1000, 1/1000, 1)

W2: 3 * gcos(1000, 1/1000, 1)

W3: xy(w1, w2)

W4: {carea(w3)}

 

W3 contains a circular series with a radius of 3.0. W4 contains the value 28.274334, the approximate value of 9π

Example:

W1: 3 * gsin(1000, 1/1000, 1)

W2: 3 * gcos(1000, 1/1000, 1)

W3: {carea(w1, w2)}

 

Same as the previous example except the X and Y values are provided as separate series.

Remarks:

CAREA expects a closed loop curve and automatically adds the closing point if the starting point does not equal the ending point.

 

CAREA is based on AREA and uses the modified Simpson rule to compute the absolute area.

 

See POLYAREA to compute the area of a closed polygon.

See Also:

AREA

CUMTRAPZ

INTEG

POLYAREA

TRAPZ