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.
with⁡geometry:
triangle⁡ABC,point⁡A,0,0,point⁡B,2,0,point⁡C,1,3:
area⁡ABC
3
square⁡Sqr,point⁡A,1,−212+1,point⁡B,212+1,1,point⁡C,1,212+1,point⁡E,−212+1,1:
area⁡Sqr
4
circle⁡c,point⁡OO,−3,2,2:
area⁡c
4⁢π
ellipse⁡e,x216+y29=1,x,y:
area⁡e
12⁢π
See Also
geometry[circle]
geometry[ellipse]
geometry[square]
geometry[triangle]
Download Help Document