|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
$ModuleNumber
$ModuleNumber
gives the current serial number to be used for local variables that are created.
DetailsDetails
- $ModuleNumber is incremented every time Module or Unique is called.
- Every Mathematica session starts with $ModuleNumber set to 1.
- You can reset $ModuleNumber to a positive machine integer, but if you do so, naming conflicts may lead to inefficiencies.
ExamplesExamplesopen allclose all
Basic Examples (2)Basic Examples (2)
Each use of Module increments $ModuleNumber:
| In[1]:= |
| Out[1]= |
You can reset $ModuleNumber:
| In[1]:= |
| Out[1]= |
New in 2
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
