Polar Coordinates

Consider the mapping \( T:\mathbb{R}^2 \to \mathbb{R}^2 \):
\(T(r,\varphi)=\left(r\cos(\varphi),r\sin(\varphi)\right)^{\top}\)

Change the blue segment by the sliders and adjust the red one by dragging around the points \(P_1\) and \(P_2\).
This examples demonstrates furthermore the coupling of two JSXGraph boards.
Origin

Result