Questions on Mathematica packages, which are self-contained bundles of Mathematica code that add new functions and other functionality.
15
votes
3answers
367 views
Listing the functions defined in a package
Assume that I know a package's (Context?) name that is loaded. Now I want to list the functions defined in this package. How can I do it?
I remember that I found a way once, but I cannot re-find it. ...
8
votes
1answer
269 views
How to properly DumpSave & Get Global`s symbols inside packages while not touching Global context?
For efficiency reasons I prefer to use DumpSave instead of Save.
For ease of access I prefer to save symbols in ...
6
votes
2answers
1k views
Function to compute the probability of exactly one event occurring out of N independent events
Is there a built in function (or a function in one of the standard packages) that allows you to compute the probability of exactly one event occurring out of some known set of probabilities for N ...
6
votes
1answer
77 views
$InputFileName backwards compatibility
What would be a good replacement for $InputFileName (which has been added recently to Mathematica 8) to achieve backwards compatibility with let's say M6 and M7?
I ...
9
votes
2answers
270 views
Compile for deployment
Is there any way (other than the manual one) to grab all the functions a notebook uses from the different user-defined packages and putting everything into one file to deploy the code for e.g. CDF? I ...
19
votes
3answers
2k views
Differential geometry add-ons for Mathematica
I need a differential geometry tool for Mathematica. Is there any add-on?
Unfortunately, Mathematica does not include such functionality or I can not find it.
6
votes
1answer
161 views
How get Singular.m package to interact with Singular itself?
I've installed the package Singular.m by Kauers and Levandovskyy from http://www.risc.uni-linz.ac.at/research/combinat/software/Singular/ as well as the Singular ...
0
votes
1answer
332 views
Using GRTensorM 1.2 in Mathematica 8.0
I am copying a post from 2009 that didn't get any reply on the Wolfram page, as I am experiencing a similar problem to this at the moment:
I was wondering if anyone here knows of a way to force 8.0 ...
16
votes
2answers
321 views
Automated testing for compatibility with older Mathematica versions
I have several packages which I actively develop and maintain. I try to stay up to date with new releases of Mathematica and usually update within a couple of months of a new version coming out. As a ...
3
votes
1answer
214 views
How do you get Weisstein’s Hyphenate package to run?
I've put Eric Weisstein's Hyphenate.m package in $UserBaseDirectory/Utilities; installed the requisite ...
18
votes
2answers
581 views
What is a “Paclet”?
I often see references to "paclets", for example the PacletManager` context, the PacletInfo.m file in some packages and next to ...
29
votes
3answers
833 views
How to distribute proprietary Mathematica code
If I want to make package-code completely unreadable, in a way that the end-user can only call my functions, but has no way to re-engineer my definitions, how would I do that?
I know I can use ...
10
votes
2answers
367 views
How to unload automatically loaded packages?
I know that this has been discussed here (How do I clear all user defined symbols?), but my case is somewhat different. How does one unload packages during runtime that were loaded with the start of ...
10
votes
2answers
351 views
How to make a parallel auto-generated .m package from Initialization cells?
according to the documentation at ref/InitializationCell,
When you first save a notebook that contains initialization cells, you have the option to make a ...
11
votes
3answers
278 views
What is the purpose of tags like :Name:, :Context:, etc. in packages?
I noticed that all of the packages that come with Mathematica start with a header that is in a standard format. (See e.g. the header of NIntegrateUtilities` at the ...
13
votes
2answers
993 views
How to install packages?
This is always a problem when I distribute my packages to colleagues working on different platforms. I have my packages installed into a private directory and I autoload some of them when Mathematica ...
8
votes
2answers
375 views
Why is JLink loaded every time I start Mathematica?
When I start a Mathematica 8 session (either command line or with the notebook front end), I notice that there are several packages that have already been loaded for me (using ...
9
votes
1answer
142 views
Future-proofing access to packed array tools
Most of the Mathematica users beyond beginner level will be aware of the phenomenon of Packed Arrays. The user-accessible functions related to packed arrays live in the ...
11
votes
4answers
319 views
Strategies for avoiding and handling shadowing
When dealing with namespaces in Mathematica (BeginPackage, $ContextPath ...) one is unavoidably confronted with the problem of ...
29
votes
3answers
875 views
Custom package development: Basic steps
Every once in a while, I write a generic function that I use quite often for months to come. However, package development in Mathematica is not very well documented from what I can tell, and I was not ...
19
votes
2answers
450 views
What are recommended guidelines for developing packages?
This might be of general interest – I have different questions regarding naming conventions, contexts, subcontexts, shadowing, etc., but I do feel that they are closely related, thus I don't really ...
15
votes
2answers
276 views
How safe is Encode?
How safe is an encoded package (using locked, etc)?
If I don't specify a personal key, I understand that the encoding key must be somewhere in the Mathematica program itself, and so it is not a ...