Needs
Usage
• Needs["context`"]当指定的上下文已经不在$Packages中时,装载一个适当文件.
• Needs["context`", "file"]当指定的上下文已经不在$Packages中时,装载 file
Notes
• Needs["context`"] 调用Get["context`"]. 习惯上,以这种方式装载的文件包含定义 context` 的程序包. • 例如: Needs["Collatz`"] 典型地读入名为 Collatz.m 的文件. • 参见 Mathematica 全书 : 节 2.6.10.
Further Examples
This loads the package PlotField if it has not already been loaded.
In[1]:=
|
Now these package functions are available.
In[2]:=
|
Out[2]=
|
|