PDA

View Full Version : Tables/Matrices in Mathematica


musicgirl
Jun6-11, 03:45 PM
Hi,

I'm trying to make a table/matrix in mathematica to describe a system of differential equations that I have. At the moment, what I want is a table with the first column reading

(A*v*(1-v)*(1-a)-w-w0)/e

and the second column reading

v-g*w-v0

and I want to be able to arbitrarily define the number of equations I have so I can extend to higher dimensions.

I know how to get the array I'm after, for instance...

n = *insert appropriate number here*
Table[(A*v*(1-v)*(1-a)-w-w0)/e,{i,n},{j,2}]

But I don't know how to get a different set of equations in the second column. Any ideas, or am I taking the wrong approach entirely?

Thanks for your help!

Bill Simpson
Jun6-11, 04:47 PM
Is this something like what you are looking for?

Table[{(A*v*(1-v)*(1-a)-w-w0)/e,v-g*w-v0},{i,n}]

musicgirl
Jun7-11, 03:05 AM
Yep that works great. Thanks very much!