Make Math Work
Area

Usage: Area Shape Number 1 [, Number 2]

The Area command will calculate the area of various shapes. The name of the shape follows the Area keyword, for example, Area Circle 2.

The different shapes require different numbers of parameters, for example, a circle needs one parameter, its radius, while a trapezoid needs three parameters, its two bases and its height.

This is a list of the shapes, their formulas, and the command syntax:

Circle Πr2Area Circle radius
Ellipse Πr1r2Area Ellipse radius_1, radius_2
Square s2Area Square side
Rectangle LWArea Rectangle length, width
Rhombus bhArea Rhombus base, height
Parallelogram bhArea Parallelogram base, height
Trapezoid ½(b1+b2)hArea Trapezoid base_1, base_2, height
Triangle ½bhArea Triangle base, height
Hexagon s2 x 3 x Sqrt(3) / 2Area Hexagon side
Octagon s2 x (2 + 2 x Sqrt(2))Area Octagon side


Examples:
Area Rectangle 2, 3 returns and area of 6.
Area Circle 2.5 returns an area of 19.63.
Area Trapezoid 2, 5, 4 returns an area of 14.