Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2002
*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 2002

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

Search the Archive

RE: Matrix

  • To: mathgroup at smc.vnet.net
  • Subject: [mg34837] RE: [mg34829] Matrix
  • From: "David Park" <djmp at earthlink.net>
  • Date: Sun, 9 Jun 2002 05:10:05 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

matA = {{1, 1}, {1, 0}};

matA * matA
{{1, 1}, {1, 0}}

This is because * is not matrix multiplication but just regular
multiplication. Corresponding elements of the two matrices are multiplied
together.

To do matrix multiplication use the dot operator.

matA.matA
{{2, 1}, {1, 1}}

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/




> From: Pirc [mailto:pirc_defense at hotmail.com]
To: mathgroup at smc.vnet.net
>
> If matrix A = ((1, 1) (1, 0)), Mathematica reports A * A as A.
>
> Shouldn't A * A = ((2, 1) (1, 0))?
>
> What am I missing?
>
> Thanks.
>



  • Prev by Date: Re: Matrix
  • Next by Date: Re: Does a Mathematica IRC channel exist?
  • Previous by thread: Re: Matrix
  • Next by thread: Mathematica 3.0 + Win XP?