Skip to main content

Questions tagged [variable-definitions]

Questions on assigning and unassigning definitions to names that represent them, including issues raised by context and localization. Use tag [assignment] for issues relating to Set versus SetDelayed.

1 vote
4 answers
255 views

The strange goal I want to do something like this ...
Adam's user avatar
  • 4,293
2 votes
2 answers
116 views

I want to programmatically create a set of variables (each corresponds to an index n, for example: {a1,b1} or ...
Johnson's user avatar
  • 589
4 votes
0 answers
198 views

I'm trying to solve an ODE and upon executing: ...
DingleGlop's user avatar
2 votes
2 answers
257 views

In Maple, there is clear distinction between same named variable, one which has module scope and one that is local inside a function. I am not able to reproduce this in Mathematica package. In this ...
Nasser's user avatar
  • 156k
2 votes
2 answers
116 views

How do I use Mathematica to write the constrained double pair of {a,b} variable ranges from and ONLY from the list {{0, 0}, {1, 1}, {0, 2}, {1, 0}, {0, 1}, {1, 2}}? I tried this toy model example, but ...
wonderich's user avatar
  • 963
0 votes
1 answer
147 views

I am dealing with the following set of pde $\alpha(p,q)+2p\frac{\partial\alpha(p,q)}{\partial p}=0$, $\frac{3}{2}\alpha(p,q)+p\frac{\partial\beta(p,q)}{\partial q}=0$, $A\frac{\partial\alpha(p,q)}{\...
Mehdi's user avatar
  • 31
3 votes
1 answer
203 views

I have a function, int1[w] which incorporates two yet-to-be evaluated constants, u a positive real and ...
Richard Burke's user avatar
3 votes
3 answers
505 views

I'm defining a function in Mathematica as follows: f[x_] := x+x-x //FullSimplify; In this setup, every time f is called, FullSimplify is executed, which can be ...
Jannik Wyss's user avatar
2 votes
1 answer
121 views

Can we define in advance that $k$ is even? For example, when defining the sequence $\{a_n\}$ inductively as follows, input: ...
Young's user avatar
  • 291
4 votes
1 answer
151 views

I'm trying to understand Mathematica's behavior when creating a Table based on a given list of variables. I'm using a dummy variable to iterate through the list, and I want to make sure that ...
Māris Ozols's user avatar
5 votes
2 answers
400 views

I need to use local indexed variables inside With but it is not allowed, the same for Block and ...
azerbajdzan's user avatar
  • 32.8k
1 vote
1 answer
65 views

I have a dataset of 17 time intervals with the form: dataset1 = {{{1969, 7}, {1970, 2}}, {{1972, 4}, {1973, 4}},...} The goal is to plot them with "...
McNess's user avatar
  • 55
1 vote
0 answers
87 views

Suppose I have a real number $x$, and I want to check the hermicity of the matrix $A=x\sigma_x$, here $\sigma_x$ is the Pauli matrix $\{\{0,1\},\{1,0\}\}$, I run the code ...
Me.F's user avatar
  • 11
2 votes
0 answers
135 views

This default setting can cause subtle and difficult to find problems, such as inconsistent or incorrect answers when symbols, variables or functions in different notebooks have the same name. I speak ...
NemoX's user avatar
  • 61
0 votes
1 answer
80 views

Suppose I want to define weight[] on a list. For instance I want weight[a]:=3, weight[b]:=5, etc. I tried to do this using the ...
VertexVexed's user avatar

15 30 50 per page
1
2 3 4 5
35