Re: symbolic matrix manipulation
- To: mathgroup at smc.vnet.net
- Subject: [mg96088] Re: [mg96042] symbolic matrix manipulation
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Wed, 4 Feb 2009 05:22:45 -0500 (EST)
- Reply-to: hanlonr at cox.net
rr = Dot[s___, a, b, e___] :> s.b.a.e + s.e;
a.b.b.a //. rr
2 b.a+b.b.a.a
FixedPointList[# /. rr &, a.b.b.a] // Most
{a.b.b.a,b.a+b.a.b.a,2 b.a+b.b.a.a}
Bob Hanlon
---- ashwin.tulapurkar at gmail.com wrote:
=============
Hi,
I am trying to simplify the following matrix expression:
a.b.b.a with the rule: replace a.b by (b.a+1). So I expect the final
output to be
a.b.b.a --> (b.a+1).b.a --> b.a.b.a+b.a --> b.(b.a+1).a+b.a -->
b.b.a.a + 2 b.a
Can you tell me how to do this?
Thanks.
-Ashwin