Make Math Work
Surface Area

Usage: Area3d Solid Number 1 [, Number 2, Number 3, Number 4]

The Area3d command will calculate the surface area of various solids. The name of the solid follows the Area3d keyword, for example, Area3d Sphere 2.

The different solids require different numbers of parameters, for example, a sphere needs one parameter, its radius, while a cylinder needs two parameters, its radius and its height.

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

Cone Πr2 + ΠrsArea3d Cone radius, side
Cylinder 2Πr2 + 2ΠrhArea3d Cylinder radius, height
Rectangular Prism 2(wh + lw + lh)Area3d RectangularPrism width, height, length
Square Pyramid 2bs + b2Area3d SquarePyramid base, side
Triangular Prism bh + 2ls + lbArea3d TriangularPrism base, height, length, side
Sphere 4Πr2Area3d Sphere radius


Examples:
Area3d Cone 2, 3 returns and area of ??.
Area3d RectangularPrims 2.5, 3, 4 returns an area of ??.
Area3d_TriangularPrism 1, 1.5, 2, 2.5 returns an area of ??.