Re: Equal and operation with list
- To: mathgroup at smc.vnet.net
- Subject: [mg29520] Re: Equal and operation with list
- From: Tom Burton <tburton at cts.com>
- Date: Sat, 23 Jun 2001 01:47:00 -0400 (EDT)
- Organization: Brahea Consulting
- References: <9guom2$nvh$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
A compact solution is
MapThread[#1 == #2 . X & , {Y, B}]
but if you are new to Mathematica, MapThread may be a bit much; so try
#1 == #2.X & @@@ Transpose[{Y, B}]
or, less cryptically,
Apply[Function[{y, b}, y == b.X], Transpose[{Y, B}], 1]
Tom Burton
On Fri, 22 Jun 2001 06:30:26 +0000 (UTC), in comp.soft-sys.math.mathematica you wrote:
>I have tree list:
>
>Y = {y1, y2}
>B = {{b11,b12} , {b21, b22}}
>X = {X1, X2}
>
>I wish transform its in a system of equations like this:
>
>{y1== b11 X1 + b12 X2, y2== b21 X1 + b22 X2}
>
>I have test with Y == Dot[B,X] but don`t work. Any help?. Thanks
Tom