Message Boards Message Boards

GROUPS:

How can I make and call packages in Mathematica?

Posted 9 years ago
11707 Views
|
4 Replies
|
0 Total Likes
|
 I read some couple of books and also check the help folder in Mathematica concerning packages. I made some packages as well but I couldn't execute them properly.
I save them in ...Addons\packages. But whenever I call the package using NEEDS or GET  I keep getting "cannot open file". can anyone help me on how to solve my problem or a very good explanations and examples on how to make a good package
4 Replies
I posted the attached notebook to an earlier question that asked for similar advice.  I wrote it for a consulting client of mine.  It is not the whole story, but it provides some hopefully useful pointers.

--David
http://scientificarts.com

Attachments:
POSTED BY: David Reiss
Please also try this tutorial:
http://support.wolfram.com/kb/5648


You can also run a package using the Needs function and supply the full file path to the package.
http://reference.wolfram.com/mathematica/ref/Needs.html
POSTED BY: Sean Clarke
Posted 9 years ago
Packages are not my area of expertise.
At first your package is  ".m" file  or more ".m" files. (may include additional data or documentation)

See link:
http://stackoverflow.com/questions/4641512/how-to-install-new-packages-for-mathematica

There is written:
Packages are placed on $UserBaseDirectory/Applications or $BaseDirectory/Applications.
If you want more comfort and your own documentations and more features, so you need install Wolfram Workbench.
My answer is blunt, because I do not know all the details and describe them takes many times.
POSTED BY: Mirek M
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract