pol
Convert rectangular coordinates (x, y) to polar form (r, θ) with selectable degree or radian angle mode. Returns radius and angle for given inputs.
Instructions
When: convert rectangular (x,y) to polar (r,θ). Prefer over manual atan2 for this mode. Params: x, y; angle_mode for θ (default deg). Example: x=2, y=2, angle_mode="deg" → r≈2.828, θ=45.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| angle_mode | No | deg |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |