Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1996

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

Search the Archive

Re: Help: Column/Row Vector

  • To: mathgroup at
  • Subject: [mg4322] Re: [mg4253] Help: Column/Row Vector
  • From: "Richard L. Bowman" <rbowman at>
  • Date: Tue, 9 Jul 1996 00:50:41 -0400
  • Sender: owner-wri-mathgroup at

On Sun, 23 Jun 1996 khinast at wrote:

> I have two vectors x=(x1,x2) and y = (y1,y1). How can I persuade Mathematica
> that e.g. x is a column vector and y is a row vector, which is kind of 
> important for their multiplication .

Mma in a sense treats the first level of parentheses as rows.  Therefore y
is already a row vector.  To make x a column vector, write it as
x = {{x1},{x2}}

Then y x = {{y1,x1},{y2,x2}} as expected.

Dr. Richard L. Bowman
Dept. of Physics                         e-mail:  rbowman at
Bridgewater College                                  phone:  540-828-5441
Bridgewater, VA  22812                                 FAX:  540-828-5479


  • Prev by Date: mathematica to dxf?
  • Next by Date: Re:Help: Column/Row Vector
  • Previous by thread: Re: mathematica to dxf?
  • Next by thread: Re:Help: Column/Row Vector