       How to use VectorAnalysis package?

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

```Hi,
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:= Needs["Calculus`VectorAnalysis`"]

In:= SetCoordinates[Cylindrical[]]

Out= Cylindrical[r, theta, z]

In:= a={a1,a2,a3}

Out= {a1, a2, a3}

In:= n={0,0,1}

Out= {0, 0, 1}

In:= CrossProduct[a,n]

2        2     2        2
Out= {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.

Richard

```

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