Re: How do you set up third party (or your own) packages?
- To: mathgroup at smc.vnet.net
- Subject: [mg79683] Re: How do you set up third party (or your own) packages?
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Wed, 1 Aug 2007 05:16:38 -0400 (EDT)
- Organization: Uni Leipzig
- References: <f8n1ui$kfo$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
Hi, the best way is to look in a Mathematica session what is in your $Path. You will find some private directories. My Windows Vista tell me that the value of $Path is {"C:\\Program Files\\Wolfram \ Research\\Mathematica\\6.0\\SystemFiles\\Links", \ "C:\\Users\\kuska\\AppData\\Roaming\\Mathematica\\Kernel", "C:\\Users\ \\kuska\\AppData\\Roaming\\Mathematica\\Autoload", \ "C:\\Users\\kuska\\AppData\\Roaming\\Mathematica\\Applications", \ "C:\\ProgramData\\Mathematica\\Kernel", "C:\\ProgramData\\Mathematica\ \\Autoload", "C:\\ProgramData\\Mathematica\\Applications", ".", \ "C:\\Users\\kuska", "C:\\Program Files\\Wolfram Research\\Mathematica\ \\6.0\\AddOns\\Packages", "C:\\Program Files\\Wolfram \ Research\\Mathematica\\6.0\\AddOns\\LegacyPackages", "C:\\Program \ Files\\Wolfram Research\\Mathematica\\6.0\\SystemFiles\\Autoload", \ "C:\\Program Files\\Wolfram \ Research\\Mathematica\\6.0\\AddOns\\Autoload", "C:\\Program \ Files\\Wolfram Research\\Mathematica\\6.0\\AddOns\\Applications", "C:\ \\Program Files\\Wolfram \ Research\\Mathematica\\6.0\\AddOns\\ExtraPackages", "C:\\Program \ Files\\Wolfram \ Research\\Mathematica\\6.0\\SystemFiles\\Kernel\\Packages", \ "C:\\Program Files\\Wolfram Research\\Mathematica\\6.0\\Documentation\ \\English\\System"} and the "C:\\Users\\kuska\\AppData\\Roaming\\Mathematica\\Kernel", "C:\\Users\\kuska\\AppData\\Roaming\\Mathematica\\Autoload", "C:\\Users\\kuska\\AppData\\Roaming\\Mathematica\\Applications" are good candidates to place the package in ... For a package with the context MathWorld`PlaneGeometry` you should place it in an directory MathWorld and name the file PlaneGeometry.m and finaly don't forget the last back quote ` because it stand for the extension .m in the file name. Regards Jens Daniel Flatin wrote: > I am asking this question in all humility on the theory that there is > no stupid question in this forum. My apologies if this is not the case: > > How do I use third party packages, or my own for that matter? For a > specific case, I have downloaded some files from mathworld.wolfram.com > and the set of version 6 MathWorldPackages. I want to load > PlaneGeometry.m which in turn has a dependency on > KimberlingCoordinates.m. In my effort to successfully execute the line: > > << MathWorld`PlaneGeometry > > I have tried putting selected packages in > ~/Libraries/Mathematica/Applications. I have tried modifying $Path using > > AppendTo[$Path, =E2=80=A8 ToFileName[{$HomeDirectory, "Documents", > "MathematicaFiles", "MathWorld", =E2=80=A8 "MathWorldPackages"}]] > > Neither solution works. The only thing that has proven to work is using > Get[] with the full path name to the file, but this isn't the standard > approach. What doesn't seem to be working for me is adding the > appropriate path to the list of search paths Mathematica uses, > presumably $Path. > > Thanks in advance, > Dan > >