Physics 265 Physics 265
Introductory Scientific Computing
Assignment # 10: Vectors and Arrays

Winter 2000, © R H Landau rubin@physics.orst.edu
Due: Wed 10 Mar (in class)

Vector Operations

Dealing with vectors that are represented by components is really quite easy. For example, let's say that we have a vector A that we represent with its three components,
A=[ Ax Ay Az ],      (5)
as well as another vector B that we represent by its three components,


B=[ Bx By Bz ].      (6)

Then all possible vector operations can be defined in terms of the components of A and B. For example,

A+B = [ Ax + Bx Ay + By Az + Bz ],      (7) A-B = [ Ax - Bx Ay - By Az - Bz ],      (8) cA = [ cAx cAy cAz ],      (9) A·B = Ax Bx + Ay By + Az Bz ,      (10) A×B = [ Ay Bz - Az By Az Bx - Ax Bz Ax By - Ay Bz ].      (11)

 [Actually, the cross product A×B is perpendicular to the plane formed by A and B, which also makes it perpendicular to both A and B.] 

  1. Do a matrix multiplication to determine L for the three cases in which
    ω=[ 1 0 0 ],[ 0 1 0 ],[ 1 1 1 ].           (29)
  2. For the L and last value of ω, determine the cross product ω×L and the dot product ω·ω.