I have a set of coordinates on the sphere in terms of cartesian coordinates. I would like to convert them to spherical data points. However, when I try to convert the point {0, 0, 1} it tells me that the solution is indeterminate. Why is this?
CoordinateTransform[ "Cartesian" -> "Spherical", {0, 0, 1}]
ArcTan::indet: Indeterminate expression ArcTan[0,0] encountered. >>
Best, Andy
Limit[CoordinateTransform["Cartesian" -> "Spherical", {0, eps, 1}], eps -> 0]
. $\endgroup$ – b.gates.you.know.what May 2 '13 at 16:00{0, 0, 1} /. v_?VectorQ :> With[{r = Norm[v]}, {r, Arg[#1 + I #2 & @@ Most[v]], ArcCos[Last[v]/r]}]
$\endgroup$ – J. M.'s ennui♦ May 2 '13 at 16:20