Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2003
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2003

[Date Index] [Thread Index] [Author Index]

Search the Archive

The difference between Needs[ ] & Get[ ]

  • To: mathgroup at smc.vnet.net
  • Subject: [mg40149] The difference between Needs[ ] & Get[ ]
  • From: "neuron" <b90401114 at ntu.edu.tw>
  • Date: Sat, 22 Mar 2003 05:10:39 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Hello MathGroup gurus,
I am new to Mathematica and now reading "Programming In Mathematica."
I am a little  confused with Needs[ ] & Get[ ].
I kow that  Needs[ ] checks $Packages whether the package is present or 
not and I usually use Needs[ ] to load a package.
On the xiv page of "ProgrammingInMathematica" it says "Even better is 
Needs["ProgrammingInmathematica`Package`"]........"
but on page 13,
when I input
Needs["ProgrammingInMathematica`ComplexMap1`"]
instead of
<<ProgrammingInMathematica`ComplexMap1`
an error occurs:
Needs::nocont: Context ProgrammingInMathematica`ComplexMap1` was not 
created when Needs was evaluated.

I don't know why, for the Help says "Needs["context`"] calls 
Get["context`"]. By convention, the file loaded in this way is the one 
which contains a package that defines context`. "

I execute Mathematica 4.1 on Windows98

 Thanks for any advice.



  • Prev by Date: Re: Newbie question
  • Next by Date: Re: Mathematica newbie question : NDSolve
  • Previous by thread: Re: Q: About Needs[] and something about Contexts
  • Next by thread: RE: The difference between Needs[ ] & Get[ ]