| New Reply |
Mathematica Help with Table command and Matrix operations |
Share Thread |
| Apr6-12, 04:32 PM | #1 |
|
|
Mathematica Help with Table command and Matrix operations
Hi,
I need to generate some data in a Table and then be able to do all kinds of matrix and other mathematical operations on them. Right now I am testing the commands but am unable to get them to work. My table has this extra parenthesis floating around which I'm not sure how to get rid of. Code:
test = Table[{i^2, y /. Solve[2 y + i == 0]}, {i, 1, 10}]
Code:
Out[8]={{1, {-(1/2)}}, {4, {-1}}, {9, {-(3/2)}}, {16, {-2}}, {25, {-(5/
2)}}, {36, {-3}}, {49, {-(7/2)}}, {64, {-4}}, {81, {-(9/
2)}}, {100, {-5}}}
Code:
test2 = {{1/2, 0}, {0, 1/2}}
Now I am unable to multiply the two Matrices, Test 2x10 and Test2 2x2. I have tried Code:
test2.test Code:
test.test2 Code:
{1, {-(1/2)}}
Any help will be greatly appreciated. Thanks a lot, |
| Apr6-12, 08:59 PM | #2 |
|
|
Replace your code with
Code:
test=Table[{i^2,y/.Solve[2 y+i==0][[1]]},{i,1,10}]
|
| New Reply |
| Tags |
| mathematica, matrix operations, table |
Similar discussions for: Mathematica Help with Table command and Matrix operations
|
||||
| Thread | Forum | Replies | ||
| Controlling Mathematica Through the MS-DOS Command Line in VBA for CST MWS | Computers | 0 | ||
| What command to be used in Mathematica | Math & Science Software | 1 | ||
| Mathematica, Plot3D command and 3D points | Math & Science Software | 2 | ||
| Mathematica - Plot two 2D graphs with different command in one figure | Math & Science Software | 2 | ||
| A question about Manipulate command in Mathematica | General Math | 1 | ||