area_calculate
Calculate the area and, when possible, perimeter of common shapes including circles, rectangles, triangles, trapezoids, ellipses, parallelograms, and sectors.
Instructions
Calculate area (and perimeter where possible) of common shapes: circle, rectangle, triangle, trapezoid, ellipse, parallelogram, sector.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Base (triangle, parallelogram). | |
| base1 | No | First base (trapezoid). | |
| base2 | No | Second base (trapezoid). | |
| shape | Yes | Shape: circle, rectangle, triangle, trapezoid, ellipse, parallelogram, or sector. | |
| width | No | Width (rectangle). | |
| height | No | Height (rectangle, triangle, trapezoid, parallelogram). | |
| radius | No | Radius (circle, sector). | |
| semi_major | No | Semi-major axis (ellipse). | |
| semi_minor | No | Semi-minor axis (ellipse). | |
| angle_degrees | No | Angle in degrees (sector). |