Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Re: CrossProduct in Spherical Coordinates

  • To: mathgroup at smc.vnet.net
  • Subject: [mg75317] Re: CrossProduct in Spherical Coordinates
  • From: Roger Bagula <rlbagula at sbcglobal.net>
  • Date: Wed, 25 Apr 2007 05:32:26 -0400 (EDT)
  • References: <f0kbsf$r1k$1@smc.vnet.net>

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
>
>
> 
>
The answer that you are thinking about it wrong:
spherical polar coordinates are { r, theta, phi}
without an r value in the coordinate the output will always be zero.
You need at least an angle and a radius to get any output at all.
Examples:
In[32]:=
CrossProduct[{1,0,1},{1,1,0},Spherical]

Out[32]=
{Sin[1], =CF=80/2, =CF=80/2}

In[33]:=
CrossProduct[{1,0,1},{0,1,1},Spherical]

Out[33]=
{0,0,0}


  • Prev by Date: Apply filter to measured data
  • Next by Date: kernel shut down without error messages
  • Previous by thread: Re: CrossProduct in Spherical Coordinates
  • Next by thread: Re: CrossProduct in Spherical Coordinates