Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I have question about matrix calculation. like $\mathbf{b}^{t}\Sigma \mathbf{b}$, where $\Sigma$ is 7 by 7 matrix, and $\mathbf{b}$ is vector of 7.

and each element in the vector b or $\Sigma$ is symbol formula,

for example the (i,j) th element of $\Sigma$, $\Sigma_{i,j}=ab+c+u+m$,etc, is there anyway to get the results from Mathematica?

Thank you in Advance.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

You may need to use the "list" data structure in mathematica. Say, $\Sigma$ is a two by two matrix. In Mathematica, you just input

Sigma = {{x+y, m+n}, {x+y-w, m-n.l}}

Similarly

b={u,v}

Then, $b\Sigma b^T$ is just

b.Sigma.Transpose[b,{1}]

Hope it works for you.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.