treams.special.cyl2sph¶
- treams.special.cyl2sph(r) = <ufunc 'cyl2sph'>¶
Convert cylindrical to spherical coordinates
The cylindrical coordinates \((\rho, \varphi, z)\) are converted to \((r, \theta, \varphi)\) with \(\rho = r \sin \theta\) and \(z = \rho \cos \theta\).
- Parameters:
r (float, 3-array) – Cylindrical coordinates in 3-dimensional space
- Returns:
float, 3-array