Skip to main content

Questions tagged [scoping]

Questions on Mathematica's scoping constructs (Block, Module, With, etc.)

1 vote
4 answers
253 views

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

I need to draw sth using Plot (example below). I prefer using local variables in Module so that variables don't interfere others ...
feynman's user avatar
  • 451
0 votes
1 answer
130 views

This is my code: ...
melo's user avatar
  • 13
3 votes
2 answers
206 views

The following two functions are identical, apart from the fact that the first one uses Module and the second oneDynamicModule. <...
Fred Simons's user avatar
  • 10.4k
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.5k
3 votes
0 answers
68 views

This part will print the change: nomos = Names["Global`*"]; Print @ Complement[Names["Global`*"],nomos]; And in between you can run one of ...
jWey's user avatar
  • 155
0 votes
1 answer
135 views

Can someone explain the principles underlying the following behavior. I define the list testD, and then use a Do loop to change values in the list (I realize there are smarter ways but they don't fit ...
Robert's user avatar
  • 505
2 votes
1 answer
155 views

I would like to evaluate a section several times for different values of some variables. I can evaluate it once with a simple command, but not in a loop. To evaluate it only once, this code works <...
Albercoc's user avatar
  • 1,122

15 30 50 per page
1
2 3 4 5
40