DOCUMENTATION CENTER SEARCH
Mathematica
>
Namespace Management
>
Built-in
Mathematica
Symbol
Mathematica Packages
Setting Up Mathematica Packages
Tutorials »
|
Get
DeclarePackage
FileNames
See Also »
|
Mathematica Expressions in Files
Namespace Management
Package Development
More About »
Needs
Needs
["
context
`"]
loads an appropriate file if the specified context is not already in
$Packages
.
Needs
["
context
`", "
file
"]
loads
file
if the specified context is not already in
$Packages
.
MORE INFORMATION
Needs
["
context
`"]
calls
Get
["
context
`"]
. By convention, the file loaded in this way is the one which contains a package that defines
context
`
.
Needs
["
file
`"]
typically reads in a file named
file
.m
.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
Read in the file for the
Computer Arithmetic Package
if it has not already been read:
In[1]:=
The commands defined by the package are ready for use:
In[2]:=
In[3]:=
Out[3]=
SEE ALSO
Get
DeclarePackage
FileNames
TUTORIALS
Mathematica
Packages
Setting Up
Mathematica
Packages
MORE ABOUT
Mathematica Expressions in Files
Namespace Management
Package Development
New in 1
© 2008 Wolfram Research, Inc.