Linked Questions

1
vote
1answer
3k views

Adding letters and numbers to create a variable name [duplicate]

Let's say I have several variables, named R1, R2 and R3. I wanted to have a function ...
1
vote
0answers
45 views

Generate a list of variable names [duplicate]

How can I generate a list of variable-names like {p0, p1, p2, p3} etc... I tried: mylist = p # &@Range[1, 4] But then the result is: {p, 2 p, 3 p, 4 p}
10
votes
4answers
449 views

Making a list of patterns of arbitrary length

I would like to create a list of arbitrary length: {x1_, x2_, ...} Where each of the elements of the list has the full form: ...
5
votes
2answers
734 views

What alternative notation of subscripts/superscripts that are also treated as SYMBOLS in Mathematica?

I tried to avoid using the subscript $A_0$ in the Module, and get an error with $A[0]$. ...
8
votes
1answer
1k views

Proper use of arbitrary number of variables

So, I'm working on a project where the number of independent variables is not fixed. Consider a problem of $N$ independent variables, $\boldsymbol{r}$. I want to perform different things with them. ...
5
votes
1answer
222 views

An alternative to subscripts?

Are there any good alternatives to using subscripts to keep track of and uniquely identify many variables? I know that subscripted variables behave badly. Thanks!
2
votes
1answer
108 views

Assiging random values to an array of variables [closed]

I want to create a number of variables and assign random values to them. This is possible in Python using a single line of command. To be more specific say I want to create 10 variables whose value ...
0
votes
1answer
89 views

Generating list of labeled string [closed]

I want to generate a table that gives the following output: output: {"x1", "x2", "x3", "x4", "x5"} I have tried: ...
3
votes
1answer
140 views

Iteration variable in variable [duplicate]

Is it possible to create following list by some sort of iteration? {a1,a2,a3,...,a100} I cannot think of any way to append a to ...
0
votes
1answer
71 views

Matrix of functions

I want to create a matrix of functions. As explained in this question, I can create a matrix of variables: ...