<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Mar 29, 2013 at 4:33 PM, Angus McMorland <span dir="ltr"><<a href="mailto:amcmorl@gmail.com" target="_blank">amcmorl@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 29 March 2013 11:15, Todd <<a href="mailto:toddrjen@gmail.com">toddrjen@gmail.com</a>> wrote:<br>


> From what I can see, numpy doesn't have any functions for handling polar or<br>
> spherical coordinate to/from cartesian coordinate conversion.  I think such<br>
> methods would be pretty useful.  I am looking now and it doesn't look that<br>
> hard to create functions to convert between n-dimensional cartesian and<br>
> n-spherical coordinates.  Would anyone be interested in me adding methods<br>
> for this?<br>
<br>
</div></div>I use these co-ordinate transforms often. I wonder if it wouldn't be<br>
preferable to create a scikit focused on spherical or, more generally,<br>
geometric operations rather than adding to the already hefty number of<br>
functions in numpy. I'd be interested to contribute to such a scikit.<br></blockquote><div><br></div><div>The reason I think these particular functions belong in numpy is that they are closely tied to signal processing and linear algebra, far more than any other coordinate systems.  It is really just a generalization of the complex number processing that is already available from numpy.  <br>

<br>Also, although numpy has methods to convert complex values to magnitude and angle, it doesn't have any methods to go the other way.  Again, such a function would just be a special 2-D case of the more general n-dimensional functions.<br>

</div></div><br></div></div>