geometry
area
compute the area of a triangle, square, circle, or ellipse
Calling Sequence
Parameters
Description
Examples
area(obj)
obj
-
triangle, square, circle, or ellipse.
The routine area returns the area of the input object which is a triangle, a square, a circle, or an ellipse.
The command with(geometry,area) allows the use of the abbreviated form of this command.
withgeometry:
triangleABC,pointA,0,0,pointB,2,0,pointC,1,3:
areaABC
3
squareSqr,pointA,1,−212+1,pointB,212+1,1,pointC,1,212+1,pointE,−212+1,1:
areaSqr
4
circlec,pointOO,−3,2,2:
areac
4π
ellipsee,x216+y29=1,x,y:
areae
12π
See Also
geometry[circle]
geometry[ellipse]
geometry[square]
geometry[triangle]
Download Help Document