Python calculate_stress docstring
- Input
- calculate_stress(force, area) returns stress.
- Method
- Select Python NumPy-style docstring.
- Formula
- purpose + parameters + returns + style -> comment or docstring block
- 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 Parameters and Returns sections for force, area, and stress.
- 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.