MathGroup Archive 2008

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

Search the Archive

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
>



  • Prev by Date: Soundnote, musical instruments playing at arbitrary pitch
  • Next by Date: Re: Integrate vs NIntegrate
  • Previous by thread: Re: Multiplication of matrices
  • Next by thread: NDSolve from negative to positive time