Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1996
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*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: How to mutiply a 3x1 and 1x3 vector

  • Subject: [mg3081] Re: [mg3068] How to mutiply a 3x1 and 1x3 vector
  • From: dschneid at knox.edu ("Dennis M. Schneider")
  • Date: 31 Jan 1996 04:57:06 -0600
  • Approved: usenet@wri.com
  • Distribution: local
  • Newsgroups: wri.mathgroup
  • Organization: Wolfram Research, Inc.
  • Sender: daemon at wri.com


{{1},{2},{3}}.{{3,4,5}}

or

Transpose[{{1,2,3}}].{{3,4,5}}

Dennis M. Schneider
Knox College


On Tue, 30 Jan 1996, Stephen Nichols wrote:

> 
> Hi,
> 
> I have another question that I thought would be simple to to in Mathematica.
> I have two vectors A={1,2,3} and B={3,4,5}.  How do I multiple them together
> to get a 3x3 matrix.  A . B gives me a scalar result.  Mma seems to always
> treat the first one as a row vector and the second as a column vector.  I
> need it to do the opposite.  Treat the first as a column vector and the second
> as a row vector.  Any ideas?
> 
> thanks,
> 
> 
> 


  • Prev by Date: Re: How to mutiply a 3x1 and 1x3 vector
  • Previous by thread: Re: How to mutiply a 3x1 and 1x3 vector
  • Next by thread: PowerExpand[Angstrom/Meter]