PRODUCTS
PURCHASE
FOR USERS
COMPANY
OUR SITES
DOCUMENTATION CENTER SEARCH
Mathematica
>
Namespace Management
>
Built-in
Mathematica
Symbol
Contexts
Setting up Mathematica Packages
Tutorials »
|
Context
$ContextPath
CellContext
See Also »
|
Namespace Management
More About »
$Context
$Context
is a global variable that gives the current context.
MORE INFORMATION
Contexts are specified by strings of the form
"
name
`"
.
$Context
is modified by
Begin
,
BeginPackage
,
End
and
EndPackage
.
$Context
is a rough analog for
Mathematica
symbols of the current working directory for files in many operating systems.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
Give the current context. The default is
"Global`"
:
In[1]:=
Out[1]=
New symbols created will have this context by default:
In[2]:=
Out[2]=
In[3]:=
Out[3]=
SEE ALSO
Context
$ContextPath
CellContext
TUTORIALS
Contexts
Setting up
Mathematica
Packages
MORE ABOUT
Namespace Management
New in 1
© 2008 Wolfram Research, Inc.