Mathematica How to Create Custom Tables/Matrices in Mathematica?

  • Thread starter Thread starter musicgirl
  • Start date Start date
  • Tags Tags
    Mathematica
AI Thread Summary
The discussion focuses on creating a table or matrix in Mathematica to represent a system of differential equations. The user initially specifies the desired format for the table, with the first column containing the expression (A*v*(1-v)*(1-a)-w-w0)/e and the second column containing v-g*w-v0. The user seeks a method to define the number of equations dynamically to accommodate higher dimensions. After sharing an initial attempt using the Table function, the user expresses uncertainty about generating different equations for the second column. A helpful response suggests a solution that combines both expressions into a single table format, which the user confirms works effectively for their needs.
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!
 

Similar threads

Replies
3
Views
3K
Replies
2
Views
1K
Replies
1
Views
2K
Replies
1
Views
1K
Replies
6
Views
4K
Back
Top