Mathematica 9 is now available
Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

Re: Change of Basis function

  • To: mathgroup at
  • Subject: [mg69010] Re: Change of Basis function
  • From: Bill Rowe <readnewsciv at>
  • Date: Sat, 26 Aug 2006 02:04:58 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

On 8/25/06 at 5:34 AM, dsboily at (David Boily) wrote:

>I would like to know if there is a function capable of giving as
>output the representation of a vector in a given basis. For example:

>FunctionX[{1,2,3}, {{1,2,0},{0,1,0},{0,0,1}}]

>(where the first argument is the vector and the second the basis)

>would yield



>FunctionX[f x1 - b x2 + x3 - x2, {x1,x2,x3}]

>would yield

>{f, -b-1, 1}

>I'm more interested in the second case, obviously, because the first
>one can be achieved with a simple matrix multiplication.

Take a look at CoefficientArrays in the help browser. That is your specific example can be done as:

Normal@Last@CoefficientArrays[f x1-b x2+x3-x2,{x1,x2,x3}]

To reply via email subtract one hundred and four

  • Prev by Date: Re: Change of Basis function
  • Next by Date: Re: Matrix Multiplication (with a twist)
  • Previous by thread: Re: Change of Basis function
  • Next by thread: Re: Change of Basis function