MathGroup Archive 2009

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

Search the Archive

Re: expression form


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


  • Prev by Date: Re: SphericalHarmonics strange behavior
  • Next by Date: Re: Text and multiple calculations in an IF condition
  • Previous by thread: Re: expression form
  • Next by thread: Re: expression form