MathGroup Archive 2007

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

Search the Archive

Re: What's wrong?


gogoant06 at yahoo.com.hk wrote:
> In[1]:=
> <<Calculus`VectorAnalysis`
> 
> In[2]:=
> CrossProduct[{1,0,0},{0,1,0},Spherical]
> 
> Out[2]=
> {0,0,0}
> 
> Isn't the result supposed to be {0,0,1}, even in spherical
> coordinates?
> 
> lion
> 
> 
Lion

Your second vector has a magnitude of zero, so it's OK.
Try:
CoordinatesToCartesian[{0,1,0},Spherical]

As the help on (Dot, Cross, and Scalar Triple) Products says:
"These functions convert the given vectors into Cartesian coordinates 
and then compute the products using the standard definitions."


Robert


  • Prev by Date: Re: What's wrong?
  • Next by Date: Apply filter to measured data
  • Previous by thread: Re: What's wrong?
  • Next by thread: Re: What's wrong?