Method and source check
Last checked:
Automated source and implementation review, including worked examples and documented numerical limits. This review does not provide professional advice or specialist approval.
Method
Convert the selected angle unit to radians, then multiply radius by cosine and sine to obtain Cartesian x and y. Negative radii are allowed by the coordinate convention.
x = r cosθ
y = r sinθ
θ_rad = θ_deg × π/180
Variables and units
- r
- signed radial coordinate
- θ
- angle measured from positive x-axis
- x,y
- Cartesian coordinates
Worked example
For r=2 and θ=90°, x=0 and y=2; the same result follows from θ=π/2 radians.
Limitations
Displayed x,y and radian angle are rounded to six decimals; degree display is rounded to two.
- Rounding can make near-zero trigonometric components display as zero.
- Reverse conversion uses atan2(y,x) and is explanatory only; this calculator converts polar to Cartesian.
- Unsupported derived numerical ranges are rejected with a localized error on a visible form field; the calculations use floating-point arithmetic.
- (−2,0°) and (2,180°) represent the same point.
- At r=0 all angles represent the origin.