Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

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


  • 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