MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: General--Transformation of coordinates(from carteseian to polar)


madhukarrapaka at yahoo.com wrote ..
> Hello friends,
> 
> Is there any built in function for coordinate transformation(Cartesian
> to polar; Cartesian to Spherical) in MATHEMATICA.  Or shall we write our
> own program to do this transformation.
> 
> Thanks in advance.
> 
> 
> 
> Link to the forum page for this post:
> http://www.mathematica-users.org/webMathematica/wiki/wiki.jsp?pageName=Special:Forum_ViewTopic&pid=12978#p12978
> Posted through http://www.mathematica-users.org [[postId=12978]]
> 
> 

Load the standard package Calculus`VectorAnalysis` and use CoordinatesToCartesian[..., Spherical]

In[1]:=<<Calculus`VectorAnalysis`

In[2]:=
CoordinatesToCartesian[{r, a, b}, Spherical]

Out[2]=
{r*Cos[b]*Sin[a], r*Sin[a]*Sin[b], r*Cos[a]}

Adriano Pascoletti


  • Prev by Date: Re: Selecting Lists Without Null Results
  • Next by Date: Re: Erf[InverseErf] -- making a function and its inverse cancel
  • Previous by thread: Re: General--Transformation of coordinates(from carteseian to polar)
  • Next by thread: Selecting Lists Without Null Results