calculate_area
Compute area of common 2D shapes like rectangles, triangles, circles, and trapezoids. Input shape type and dimensions to get area in square units for geometry, real estate, or paint estimates.
Instructions
Compute area for common 2D shapes (rectangle, triangle, circle, trapezoid, etc.). Use for geometry, real estate, or paint estimates. Inputs: shape + dimensions. Returns area in input-units squared. See list_bundles for related 'math' calculators.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shape | Yes | Shape type | |
| length | No | Length or base | |
| width | No | Width | |
| height | No | Height | |
| radius | No | Radius | |
| side | No | Side for hexagon | |
| d1 | No | Diagonal 1 for rhombus | |
| d2 | No | Diagonal 2 for rhombus | |
| semi_major | No | Semi-major axis for ellipse | |
| semi_minor | No | Semi-minor axis for ellipse |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | Computed result. Object whose fields depend on the tool (e.g. {tax, marginal_rate, brackets} for tax tools, {volume_l, gallons} for volume tools). | |
| formula | No | Human-readable formula or method used (e.g. "I=P·r·t", "Magnus formula"). | |
| source | No | Authoritative source for the rule or formula (e.g. "Article 197 CGI", "NF DTU 21"). | |
| reference_url | No | Link to a calcul2 page documenting the calculation in detail. |