Make Math Work

Area

**Usage:** Area Shape Number 1 [, Number 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 | Πr^{2} | Area Circle radius | |

Ellipse | Πr_{1}r_{2} | Area Ellipse radius_1, radius_2 | |

Square | s^{2} | Area Square side | |

Rectangle | LW | Area Rectangle length, width | |

Rhombus | bh | Area Rhombus base, height | |

Parallelogram | bh | Area Parallelogram base, height | |

Trapezoid | ½(b_{1}+b_{2})h | Area Trapezoid base_1, base_2, height | |

Triangle | ½bh | Area Triangle base, height | |

Hexagon | s^{2} x 3 x Sqrt(3) / 2 | Area Hexagon side | |

Octagon | s^{2} x (2 + 2 x Sqrt(2)) | Area Octagon side |

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.