Rectangular and polar coordinates
Rectangular and polar coordinates
Rectangular and polar coordinates · M=1: r,θ; M=2: x,y
- 81 bytes
- COMP mode
Worked examples
Example 1
A buoy P has rectangular coordinates (−√3,−1) km relative to a base. Using r>0 and 0°≤θ<360°, which option gives its exact polar coordinates?
Answer
Standard solution (without a calculator)
- Find the radius: r=√((−√3)²+(−1)²)=√(3+1)=2 km.
- Choose the quadrant: x<0 and y<0, so P is in quadrant III; the reference angle has tanα=1/√3, hence α=30°.
- Find the polar angle: θ=180°+30°=210°. Check: 2 cos210°=−√3 and 2 sin210°=−1.
- Select the pair: The exact polar coordinates are (2 km,210°), option B.
Example 2
A device reports the polar coordinates (6 m,330°) of a point relative to the origin. Which option gives its exact rectangular coordinates?
Answer
Standard solution (without a calculator)
- Find x: x=r cosθ=6 cos330°=6(√3/2)=3√3 m.
- Find y: y=r sinθ=6 sin330°=6(−1/2)=−3 m.
- Check the quadrant and radius: Positive x and negative y put the point in quadrant IV, and (3√3)²+(−3)²=27+9=36=6².
- Select the pair: The exact rectangular coordinates are (3√3,−3) m, option C; LCD approximates x as 5.196152423.
Example 3
A robot is at Q(0,−7) m relative to origin O. Give Q’s polar coordinates with r>0 and 0°≤θ<360°, and explain why O itself has no unique polar angle.
Answer
Standard solution (without a calculator)
- Find the radius: r=√(0²+(−7)²)=7 m.
- Find the direction: Q lies on the negative y-axis, whose normalized angle is θ=270° from the positive x-axis.
- Check the coordinates: 7 cos270°=0 and 7 sin270°=−7, so Q=(7 m,270°).
- Explain the origin: At O, r=0 and every angle describes the same point. No single θ is determined there; the program reports Math ERROR for (0,0).
When to use it
Rectangular coordinates locate a point by x and y; polar coordinates give its distance r from the origin and angle θ measured anticlockwise from the positive x-axis. This program converts in either direction.
Choose the conversion
- Enter A?=1 for (x,y)→(r,θ), then B?=x and C?=y. Read r first, then the angle θ in degrees, normalized to 0°≤θ<360°.
- Enter A?=2 for (r,θ)→(x,y), then B?=positive radius r and C?=angle θ in degrees. Read x first, then y. Enter all three values explicitly.
Read and interpret the pair
- Press EXE after the first result. The second is final; record both with the correct units and use AC to leave.
- For written work, use r=√(x²+y²), the correct quadrant for θ, and x=r cosθ, y=r sinθ. LCD decimals may stand for exact surds.
Question types
- Original HKDSE Mathematics Compulsory Part practice: convert a point in a given quadrant, recover Cartesian coordinates from an angle, and explain why the origin has no unique polar angle.
Before you start
- Use COMP / Deg / Norm 1 and an empty P1 with at least 81 bytes; P1–P4 share 680 bytes. A,B,C,X,Y and Ans may be overwritten; save important values first.
- Mode A must be 1 or 2. In mode 1, (x,y)=(0,0) has no unique angle and deliberately gives Math ERROR; a point on either axis away from the origin is valid.
- In mode 2, r must be strictly positive. Zero or negative r and an invalid mode deliberately give Math ERROR. Equivalent angles outside 0°–360° still locate the same point.
- Enter B and C in the correct order; blank EXE can reuse stored values. The program converts one point only, not a translation, rotation, distance between points or geometric proof.
- Angles are in degrees. Converting a negative calculator angle to 0°≤θ<360° is done for mode 1; choose the appropriate quadrant in a written solution.
- The LCD shows rounded decimals, so retain exact roots such as 3√3 when required. Very large or tiny inputs and points close to an axis may lose precision; check Math ERROR separately.
Checking access…