Re: expression form

*To*: mathgroup at smc.vnet.net*Subject*: [mg101007] Re: expression form*From*: mark mcclure <mcmcclur at unca.edu>*Date*: Sat, 20 Jun 2009 04:02:09 -0400 (EDT)*References*: <h1hbj7$s2$1@smc.vnet.net>

On Jun 19, 8:47 pm, Haibo Min <yshdf... at gmail.com> wrote: > Suppose a={a1,a2,a3},P={{p11,p12,p13},{p21,p22,p23},{p31,p32,p33}}. > I want to get the explicit expression of a'Pa, where a' is the transpose > of vector a. One approach is represent a as a column vector. For example: a = {{a1}, {a2}, {a3}}; P = { {p11, p12, p13}, {p21, p22, p23}, {p31, p32, p33} }; Transpose[a].P.a Note that Transpose[a] can also be entered as a\[Transpose] to nicely typeset working transpose operator. Mark McClure