MathGroup Archive 2007

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

Search the Archive

Re: CrossProduct in Spherical Coordinates


Unless I misunderstand the docs for Calculus`VectorAnalysis`, the 
vectors you give as arguments to CrossProduct should already be given in 
the coordinate system you specify as the optional, 3rd argument.  So I 
think what you want is:

    CrossProduct[{1,Pi/2,0},{1,Pi/2,Pi/2},Spherical]
{1,0,0}

After all:

   CoordinatesFromCartesian[{1,0,0},Spherical]
   CoordinatesFromCartesian[{0,1,0},Spherical]
{1,Pi/2,0}
{1,Pi/2,Pi/2}



gogoant06 at yahoo.com.hk wrote:
> Dear all,
> 
> I am really new to mathematica and I have met a damn simple problem.
> 
> In[1]:=
> <<Calculus`VectorAnalysis`
> 
> In[2]:=
> CrossProduct[{1,0,0},{0,1,0},Spherical]
> 
> Out[2]=
> {0,0,0}
> 
> Why? Isn't the result supposed to be {0,0,1}, even in spherical
> coordinates?
> 
> best regards,
> lion
> 
> 

-- 
Murray Eisenberg                     murray at math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305


  • Prev by Date: Re: Re: Outputting to file with fixed decimal digits
  • Next by Date: Re: FourierTransform and removable singularities (2nd workaround!)
  • Previous by thread: CrossProduct in Spherical Coordinates
  • Next by thread: Re: CrossProduct in Spherical Coordinates