Standard Library function that returns thearea of an n-sided polygon, given the vertices of the polygon.
y An n-element real vector containing the y-coordinates of each vertex in the polygon.
x = [1, 3, 2] y = [1, 1, 4] area = POLY_AREA(x, y) PRINT, area
3.00000
x = [2, 4, 4, 2] y = [1, 1, 2, 2] PRINT, POLY_AREA(x, y)
2.00000