area - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


geometry

  

area

  

compute the area of a triangle, square, circle, or ellipse

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

area(obj)

Parameters

obj

-

triangle, square, circle, or ellipse.

Description

• 

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.

Examples

withgeometry:

triangleABC,pointA,0,0,pointB,2,0,pointC,1,3:

areaABC

3

(1)

squareSqr,pointA,1,212+1,pointB,212+1,1,pointC,1,212+1,pointE,212+1,1:

areaSqr

4

(2)

circlec,pointOO,3,2,2:

areac

4π

(3)

ellipsee,x216+y29=1,x,y:

areae

12π

(4)

See Also

geometry[circle]

geometry[ellipse]

geometry[square]

geometry[triangle]