MathGroup Archive 1998

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

Search the Archive

Re: Vectors

  • To: mathgroup at
  • Subject: [mg13953] Re: Vectors
  • From: siegman at (AES)
  • Date: Fri, 11 Sep 1998 15:06:43 -0400
  • Organization: Stanford University
  • References: <6ssuku$>
  • Sender: owner-wri-mathgroup at

In article <6ssuku$m7j at>, Olivier Georg
<ogeorg at> wrote:

*  Hi, 
*  I want to do symbolic calculation with vectors, in particular, I want
to *  do a vector product.  But if I declare: *  
*     A = (a b c)
*  and do
*     A x A
*  (which should give zero), but instead I get: *  
*     Cross::"nonn1": "Not all of the arguments are vectors  *     of
required length

You're running into the always bewildering notational inconsistencies of
Mathematica.  Consider

   A = ={{a,b,c}}
   B = {{d},{e},{f}}

(note bracketing).  Are these vectors?  Well, they can be dotted, as in

   A . B


   B . A

and you'll get the right answer in each case.  So, if they can be
"dotted", they ought to be "cross-able" as well, right? So try


and find that _none_ of these work.  Now, page 115 of the Bible says
that Cross[a,b] can also be input as a * b, so try instead

   A * B
   B * A
   A * A
   B * B

and get three or four different answers; some of these work, some don't.

Just don't expect consistency!

  • Prev by Date: delay differential equations
  • Next by Date: Abstract data types
  • Previous by thread: Re: Vectors
  • Next by thread: Re: Re: Vectors