treams.special.vcar2pol¶
- treams.special.vcar2pol(v, r) = <ufunc 'vcar2pol'>¶
Convert vector in cartesian coordinates to vector in polar coordinates
The cartesian vector \((v_x, v_y)\) at coordinates \((x, y)\) is converted to \((v_\rho, v_\varphi)\) with
\[\begin{split}\begin{pmatrix} v_\rho \\ v_\varphi \end{pmatrix} = \begin{pmatrix} \cos \varphi & \sin \varphi \\ -\sin \varphi & \cos \varphi \end{pmatrix} \begin{pmatrix} v_x \\ v_y \end{pmatrix}\end{split}\]- Parameters:
v (float or complex, 3-array) – Vector in 2-dimensional cartesian space
r (float, 2-array) – Cartesian coordinates in 2-dimensional space
- Returns:
float or complex, 2-array