Mathematica > Core Language > Package Development > Namespace Management > Needs >

Needs

Needs
loads an appropriate file if the specified context is not already in $Packages.
Needs
loads file if the specified context is not already in $Packages.
  • Needs calls Get. By convention, the file loaded in this way is the one which contains a package that defines .
  • Needs typically reads in a file named .
Read in the file for the if it has not already been read:
The commands defined by the package are ready for use:
Read in the file for the Computer Arithmetic Package if it has not already been read:
In[1]:=
Click for copyable input
The commands defined by the package are ready for use:
In[3]:=
Click for copyable input
Out[3]=
New in 1
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF