Question: VectorCalculus:-PositionVector: Component vs. coordinate (Help File)

Hello,

I am little confused about the help file regarding the VectorCalculus:-PositionVector function. 

In the help file the first argument "comps" is defined as 
"list(algebraic); specify the components of the position Vector"

In spherical coordinates, the position vector is

r e_r

So, if the position vector to be entered is given in terms of the components (in spherical coordinates), the VectorCalculus:-PositionVector function should be called as

VectorCalculus:-PositionVector([r,0,0],spherical)

But this returns

[0,0,r]

(in the cartesian frame). This would make sense if r coordinates is r, theta coordinate is 0 and phi coordinate is 0. 

However, if I call it as

VectorCalculus:-PositionVector([a,b,c],spherical)

Then I end up with

[a*sin(b)*cos(c),a*sin(b)*sin(c),a*cos(b)]

Thus, the "components" given in PositionVector are not the components but the coordinates r=a, theta=b, and phi=c.

Am I missing something here or the help file is misleading? 

I appriciate your help. 

Thanks a lot.

 

Please Wait...