How to load and use a package

GROUPS:
 Many apologies for another newbie question but what do I do with a package and where do I put it so that it will load and be usable?  I want to use Combinatorica and I have saved NewCombinatorica.m in several places, mostly hanging off my main Mathematica program files directory and given them various names but no attempt to load the package has yet been successful.  I get a msg Get::noopen: "Cannot open \!$$\"Combinatorica\"$$."  (or something similar, depending on the filename I use).
3 years ago
7 Replies
 When I write packages, I usually put them in the AddOns/Applications folder.
3 years ago
 David Reiss 1 Vote Also see the discussion about possible locations for packages in earlier posts on this group and also covered in the attached tutorial that I have posted a couple fo times (but which i burried in an old post by this point): Attachments:
3 years ago
 Many thanks for the replies.  I've put Combinatorica in AddOns/Applications as suggested and it looks like something is making sense to Mathematica as I now get a stream of erro rmessages (attached).  I realise I'm trying to run before I walk here, having only ever used Mathematica interactively rather than with programs and data but I really haven't got a clue how to proceed or what help and various tutorials are telling me. Attachments:
3 years ago
 David Reiss 2 Votes Combinatorica is a package that is shipped with Mathematica so you do not need to download and install it.  The version that you link to in your first posting is 2.0.  The version shipped with mathematica is version 2.1.  The error messages that you are getting may have to do with incompatibilities between the 2.0 version and Mathematica versions greater than 6.See http://reference.wolfram.com/mathematica/Combinatorica/tutorial/Combinatorica.htmlandhttp://reference.wolfram.com/mathematica/Combinatorica/guide/CombinatoricaPackage.htmlBut also pay attention to this:http://reference.wolfram.com/mathematica/Compatibility/tutorial/Combinatorica.html