Creating a matrix with different equations in each column in Mathematica

  • Context: Mathematica 
  • Thread starter Thread starter musicgirl
  • Start date Start date
  • Tags Tags
    Mathematica
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 3K views
musicgirl
Messages
12
Reaction score
0
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!
 
Physics news on Phys.org
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}]
 
Yep that works great. Thanks very much!