Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*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 2006

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

Search the Archive

Re: adding matrices

  • To: mathgroup at smc.vnet.net
  • Subject: [mg65812] Re: [mg65755] adding matrices
  • From: "David Park" <djmp at earthlink.net>
  • Date: Mon, 17 Apr 2006 02:29:08 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

I suspect that p was not defined as you thought because the method works.

mat1 = Array[a, {3, 3}]
mat2 = Array[b, {3, 3}]

mat1 - mat2

gives your expected result.

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


From: francis hu7xley [mailto:ac7220 at wayne.edu]
To: mathgroup at smc.vnet.net


[This post has been delayed due to email problems - moderator]


am fairly new to mathematica. simply want to add two 3x3
matrices together(actually, subtract). if they are called
m and p, if i type m-p, mathematica treats the second matrix p as a scalar
and subtracts that entire 3x3 matrix p from each entry of m. the help
contents do not seem to address this issue!!! there must be a simple way of
doing this??

thanks in advance for any help



  • Prev by Date: Re: Matrix rows
  • Next by Date: Re: Matrix rows
  • Previous by thread: Re: adding matrices
  • Next by thread: Re: adding matrices