HOME > テクニカルサポート > 製品 一覧 > SigmaPlot > ユーザーガイド > トランスフォーム関数一覧
ヒューリンクステクニカルサポート
皆様からのご質問のうち、よくある質問を掲載しました。
更新日: 14/05/08

area

関数 area は、単純な多角形の面積を返します。多角形の輪郭は x range y range で指定した xy のペアで形成されます。ポイントリストは閉じている必要はありません。最後の xy のペアが最初の xy のペアに等しくない場合は、最後のポイントと最初のポイントを結んで多角形を閉じます。関数 area は線が重なり合っていない単純な多角形に対してのみ正常に機能します。多角形の線分が交差していると、その部分は負の領域とみなされ、計算結果は不正確になります。

 

構文

area(x range, y range)

引数 x range には x 座標を、引数 y range には y 座標を指定します。2つの範囲でそれぞれ対応する値が xy のペアになります。

2つの範囲のサイズが等しくない場合は、余分な x や y のポイントは無視されます。

 

 

関連情報

area

The area function returns the area of a simple polygon. The outline of the polygon is formed by the xy pairs specified in an x range and a y range. The list of points does not need to be closed. If the last xy pair does not equal the first xy pair, the polygon is closed from the last xy pair to the first. The area function only works with simple non-overlapping polygons. If line segments in the polygon cross, the overlapping portion is considered a negative area, and results are unpredictable.

Syntax

area(x range,y range)

The x range argument contains the x coordinates, and the y range argument contains the y coordinates. Corresponding values in these ranges form xy pairs.

If the ranges are uneven in size, excess x or y points are ignored.

Example

For the ranges x = {0,1,1,0} and y = {0,0,1,1}, the operation area (x,y) returns a value of 1. The x and y coordinates provided describe a square of 1 unit.

 

関連情報

 

前のページにもどる