Re: Multiplication of matrices
- To: mathgroup at smc.vnet.net
- Subject: [mg89155] Re: Multiplication of matrices
- From: "David Park" <djmpark at comcast.net>
- Date: Tue, 27 May 2008 07:15:33 -0400 (EDT)
- References: <g1di51$9r5$1@smc.vnet.net>
If you have the Presentations package, you can use the LinearBreakout command. Needs["Presentations`Master`"] {A.(-B), A.(5 B), A.(p B + q C)} % // LinearBreakout[Dot][A, B, C] {A.(-B), A.(5 B), A.(B p + C q)} {-A.B, 5 A.B, p A.B + q A.C} -- David Park djmpark at comcast.net http://home.comcast.net/~djmpark/ "Tom=E1s Proch=E1zka" <proct2am at seznam.cz> wrote in message news:g1di51$9r5$1 at smc.vnet.net... > Hi, > > does anyone know how to simplify expressions like > A.((-1)*B) > or A.(5B) > with A and B (general) matrices to expressions like > -A.B > 5 A.B > I am sorry for such a stupid question :-) Thanks! > > Tomas >