PRODUCTS
Mathematica
Mathematica for Students
Mathematica for the Classroom
grid
Mathematica
web
Mathematica
Mathematica Player
(free download)
Mathematica Player Pro
Wolfram
Workbench
Mathematica
Applications
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
FOR USERS
All User Resources
Product Registration
Technical Support
Customer Service
Developer Support
Does My Site Have a License?
Free Seminars
Certified Training
Custom Group Seminars
Documentation & Examples
Tutorial Screencasts
Video Gallery
Demonstrations Project
Education Portal
Student Resources
COMPANY
About Wolfram Research
News & Events
Wolfram Blog
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Wolfram Blog
Mathematica Journal
Wolfram Library Archive
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
Mathematica
>
Core Language
>
Package Development
>
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.