Python area function
- Input
- calculate_area(radius) returns area.
- Method
- Select a Python function template with NumPy docstring.
- Formula
- valid identifiers + doc style + arguments + outputs -> function skeleton
- Intermediate steps
- Normalize line endings and trim empty wrapper text.
- Apply deterministic rule or template choices only.
- Add warnings for unsupported syntax, semantic assumptions, and verification steps.
- Final result
- Code includes def calculate_area(radius): and a Parameters/Returns docstring.
- Interpretation
- The result is useful as a migration or documentation aid after human review.
- Limitation
- The helper does not run tests, inspect workspace variables, or guarantee numeric equivalence.