MathGroup Archive 1994

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

Search the Archive

How to use VectorAnalysis package?

  • To: mathgroup at
  • Subject: [mg225] How to use VectorAnalysis package?
  • From: Richard Q. Chen <chen at>
  • Date: Wed, 23 Nov 94 14:11:19 EST

	I have some problems using the vector analysis package.
The following shows a typical session:

Mathematica 2.2 for Solaris
Copyright 1988-93 Wolfram Research, Inc.
 -- Open Look graphics initialized -- 

In[1]:= Needs["Calculus`VectorAnalysis`"]

In[2]:= SetCoordinates[Cylindrical[]]

Out[2]= Cylindrical[r, theta, z]

In[3]:= a={a1,a2,a3}

Out[3]= {a1, a2, a3}

In[4]:= n={0,0,1}

Out[4]= {0, 0, 1}

In[5]:= CrossProduct[a,n]

                2        2     2        2
Out[5]= {Sqrt[a1  Cos[a2]  + a1  Sin[a2] ], 
>    ArcTan[a1 Sin[a2], -(a1 Cos[a2])], 0}

Since I already set cooridinate to be cylindrical, I suppose
a={a1,a2,a3} means that a1 is the r-component, a2 theta-
component and a3 z-component. But Mma seems not doing this.

What I want is that CrossProduct[a,n] gives {a2,-a1,0}

How to do this?

Thanks for any info.


  • Prev by Date: Symbolic Matrices
  • Next by Date: Re: Mathematica materials for Chemistry
  • Previous by thread: Symbolic Matrices
  • Next by thread: Question in ParametricPlot