How to Create Custom Tables/Matrices in Mathematica?

  • Context: Mathematica 
  • Thread starter Thread starter musicgirl
  • Start date Start date
  • Tags Tags
    Mathematica
Click For Summary
SUMMARY

This discussion focuses on creating custom tables in Mathematica to represent systems of differential equations. The user initially seeks to construct a table with specific equations in each column, specifically using the expressions (A*v*(1-v)*(1-a)-w-w0)/e and v-g*w-v0. The solution provided involves using the Table function in Mathematica, allowing for the definition of the number of equations and the inclusion of multiple expressions in a single table. The final solution effectively combines both equations into a single Table structure.

PREREQUISITES
  • Familiarity with Mathematica syntax and functions
  • Understanding of differential equations and their representations
  • Knowledge of array and matrix operations in Mathematica
  • Basic programming skills to manipulate variables and functions
NEXT STEPS
  • Explore the use of the Mathematica Table function for dynamic array creation
  • Learn about defining and manipulating variables in Mathematica
  • Investigate advanced matrix operations in Mathematica
  • Study the representation of systems of differential equations in Mathematica
USEFUL FOR

Mathematics students, researchers in computational science, and anyone working with differential equations in Mathematica will benefit from this discussion.

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 ·
Replies
3
Views
4K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
5K