treams.special.car2pol¶
- treams.special.car2pol(r) = <ufunc 'car2pol'>¶
Convert cartesian to polar coordinates
The cartesian coordinates \((x, y)\) are converted to \((\rho, \varphi)\) with \(x = \rho \cos \varphi\) and \(y = \rho \sin \varphi\).
- Parameters:
r (float, 2-array) – Cartesian coordinates in 2-dimensional space
- Returns:
float, 2-array