MathGroup Archive 2010

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

Search the Archive

Re: Dot product confusion

  • To: mathgroup at
  • Subject: [mg109952] Re: Dot product confusion
  • From: Mark Adler <madler at>
  • Date: Wed, 26 May 2010 07:08:56 -0400 (EDT)
  • References: <htg90l$k7h$>

On 2010-05-25 03:32:53 -0700, S. B. Gray said:
> ptsa = {{x1, y1, z1}, {x2, y2, z2}, {x3, y3, z3}};

The dot product of two vectors commutes, but your ptsa is a matrix.  In
general matrix multiplication does not commute.

> {aa, bb, cc}.ptsa  (* expression 1 *)
> ptsa.{aa, bb, cc}  (* expression 2 *)

Mathematica treats ptsa as a column vector (1x3) in expression 1, and
as a row vector (3x1) in expression 2.


  • Prev by Date: ToExpression[ToString[expr]]=E2=89 _expr
  • Next by Date: Re: Dot product confusion
  • Previous by thread: Dot product confusion
  • Next by thread: Re: Dot product confusion