Questions on Mathematica packages, which are self-contained bundles of Mathematica code that add new functions and other functionality.
7
votes
0answers
109 views
How to run an external program in parallel with a Mathematica package?
Under Mathematica 8 (Linux x84_64) I was able to run an external program in parallel from a Mathematica package. However this procedure breaks down under Mathematica 9.
Within my Mathematica package ...
6
votes
3answers
144 views
How to program a F::argx message?
How useful is it to program a user-built function in a package to produce a red warning message F::argx if you give the wrong number of arguments to that function? ...
6
votes
1answer
271 views
How to work with Application Project files in Wolfram Workbench?
I have figured out that in a basic project I simply have to call the main package (m file) from the notebook using
<<nameofmfile`
and then the notebook ...
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
679 views
How to execute a function in the package from java?
I use Wolfram Workbench 2.0.
I can get a KernelLink object and evaluate some simple expressions like "2+2". But I don't know how to export a package and execute ...
6
votes
1answer
121 views
Could a package be composed of references?
Could a package be composed of references (e.g. usage messages)? Do the code for an induvidual function implemented in a package has to be physically in that package file where it is referenced (i.e. ...
6
votes
2answers
98 views
How to define UpValues in a different context from within a package
I'm trying to create a function (in a package) to import a lot of data and create a symbol with UpValues to return specific results about the data. I've got it working fine in a regular notebook, but ...
6
votes
1answer
181 views
How to provide your own example data for a custom package?
A nice feature of the mathematica documentation is the copious use of ExampleData in illustrating functionality. I would like to provide some example data for a ...
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 ...
6
votes
1answer
87 views
Importing parts of Packages
Some programming languages offer the possibility of importing a single function from a library, as in
from x import y
I'm looking to import only one function ...
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 ...
6
votes
1answer
94 views
Load Mathematica packages from the network
Is it possible to load packages (.m) directly from the network (http, https) without installing it locally?
6
votes
2answers
125 views
Is Package development (via InitializationCells) compatible with creating new Notations (via MakeExpressions)?
Can new (lower-level) notations be readily used within package code?
There are a few notational additions that might improve my code base but I'm not sure if these will end up being more trouble than ...
6
votes
1answer
175 views
Support for Multidimensional Scaling (MDS)?
Does mathematica support MDS? Or, are there any libraries that support it?
Basically, I have points and a distance function defined between them, and I want to plot them in 2D space, trying to ...
5
votes
3answers
96 views
How can I make private functions inside packages
I want to make private functions.for that purpose,I wrote the following code.
BeginPackage["Test1`"]
Begin["`Private`"]
function1[x_]:=x
End[]
EndPackage[]
I ...
5
votes
2answers
597 views
Two x-axis with different units connected by function using CustomTicks
I am trying to make a plot of some photoluminescence data, where wavelength is on the x-axis, and intensity is on the y-axis. Also, I would like to have the graph boxed, with the upper x-axis having ...
5
votes
1answer
90 views
Reloading package after accidental Remove[] of symbol
I was using Needs["PlotLegends"] By chance I removed ShowLegend by Remove[ShowLegend]
How do ...
5
votes
1answer
75 views
On Reverting Code that Mma Switches to Raw Input Form Back to Standard Form
I experienced a similar issue to what is described in this post while editing formatted usage messages (that contained italics) in the declaration section of a package that I'm developing in the ...
5
votes
1answer
91 views
How can I get Mathematica to recognize the documentation for a newly installed package?
To install a new package on one's machine, one first downloads and unpacks the package into the $BaseDirectory/Applications directory. The tutorial
Installing ...
5
votes
0answers
102 views
Package for voting systems
Is there a mathematica package that implements common voting systems (like IRV where voters will rank the candidates)?
4
votes
1answer
523 views
FeynArts not working properly
So I have installed all FeynArts folders (from 3.5 to 3.7) with FeynCalc 8.0.1., and none of it is working properly :\
First I load the path to specific FeynArts package (3.5 for instance), then, by:
...
4
votes
2answers
94 views
Loading custom notation on startup without showing the Notation palette
I was creating some custom notations using the Notation package and it works fine.
I put it in my default personal package, and it loads fine on Mathematica's startup.
To make it complete I need just ...
4
votes
2answers
93 views
Does the operating system matter when using Encode[]?
I have a package I want to distribute. I wrote the package in Version 9 under a Mac OS X operating system. I want to Encode[] the package.
The end user will ...
4
votes
2answers
331 views
Game theory packages
Is there any game theory package around?
I mean supporting functions which take a game in matrix form and tell you all about nash equilibra, best strategies, ect
4
votes
2answers
99 views
Function behaves differently inside a package than outside
I defined a function TestHead in a notebook as follows:
TestHead[z___] := TrueQ[{z} == Cases[{z}, x_ /; Head[x] === avar]]
to ...
4
votes
1answer
107 views
Does new MMA9 Time Series support obsolete the old TimeSeries Package?
MMA9 includes a fair number of functions and symbols that seem to overlap with the old TimeSeries package. The new features are documented here and the old material is documented here. Some of the ...
4
votes
0answers
92 views
Computing Ehrhart's polynomial for a convex polytope
Is there a Mathematica implementation for computing the Ehrhart polynomial of a convex polytope which is specified either by its vertices or by a set of inequalities?
I am interested in knowing this ...
4
votes
0answers
94 views
Why does $Path change when I examine it in new cell after I just changed it?
This is really driving me crazy.
In one cell, I change $Path by removing from it un-needed paths that I do not want for the duration of a computation I will be ...
3
votes
2answers
131 views
How can Private functions be made completely opaque?
I want to make Private functions.
From my point of view, being a Private function means that the function is not accessible from other packages. For that purpose I wrote the following code. But my ...
3
votes
2answers
275 views
How to properly remove the CUDAResources paclet?
I have Mathematica 8.0.0.0 installed on my Mac, and while I tried to see what it could do with CUDA, it downloaded a large directory (~1Â GB) named ...
3
votes
1answer
125 views
How to determine all possible functions/symbols that can be accessed from a Mathematica installation?
I made a list of all symbols and functions that can be accessed from Mathematica and any included package that comes with it after standard installation.
I thought I managed to get a list of ...
3
votes
1answer
93 views
FeynCalc “May shadow or be shadowed by other definitions”
So I've downloaded the latest FeynCalc from this site and put the extracted folder in user/me/library/Mathematica/application, but when I write the command
...
3
votes
3answers
93 views
Can I put subscripted parameter values into a package?
When defining packages, can I put parameter values alone or along with functions into a package in subscripted form?
...
3
votes
1answer
155 views
How to make a package for buttons
I am trying to make a Package for a piece of code though it's not needed here as it is very small. But my actual code here is a little bit different from that ...
3
votes
1answer
403 views
Time-frequency analysis beyond wavelets
What possibilities are there for time-frequency analysis in Mathematica beyond wavelet decomposition? I could not even find a simple STFT.
3
votes
1answer
69 views
Looking for a package regarding Schur Polynomials and Kostka numbers
I'm currently looking for any Mathematica package that involves Schur polynomials and/or Kostka numbers.
More generally, I'd be happy with anything that expands on symmetric polynomials in general. ...
3
votes
2answers
146 views
Function saved in a package won't load in the deployed CDF on startup
I wrote a function and saved it in a package. I saved a copy of the package in the Autoload folder too. I deployed a CDF that contains this function. When I open the CDF later, this function (which ...
3
votes
1answer
92 views
CycleIndex in v8
If I type
?CycleIndex
I get
Information::notfound: Symbol CycleIndex not found. >>
If I then type
...
3
votes
1answer
91 views
Creation of name.m Package
I have a structure of folders.
Main Directory( has init.m, and name.m files)
Subfolders under Main directory
library ( has the packages, pacakge1.m, package2.m)
Data (some xcel sheets and other ...
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 ...
3
votes
0answers
45 views
Eureqa Client to connect to Mathematica under Windows
Does there exist a way to use Eureqa software with Mathematica under Windows?
That is, is there a working client to connect to a Eureqa server?
3
votes
0answers
58 views
What's reliable way of finding declared but undefined functions/symbols in several interrelated packages?
I have many packages some of which use some of others. I have many symbols defined in them. Is there a reliable way of finding declared/exported but undefined functions/symbols in several ...
3
votes
0answers
64 views
Parsing subscripts when loading package files via the FrontEnd
I am working on some code, and have found it easier to use a Mathematica package because
it is easier to run via command-line (lightweight)
it allows for easier source versioning (Git), and
it ...
2
votes
2answers
155 views
Packages problems on version 9 under OS X
Using Version 9 on OS X, I've run into some problems with creating packages and accessing them. I've done the following:
wrote all the function definitions in a notebook and tested that they all ...
2
votes
1answer
324 views
Installing Mathematica's package in Linux
I copied the package folder (ProPac, http://www.pages.drexel.edu/~hgk22/software/ProPac/ProPac.html) in $UserBaseDirectory/Applications in Linux mint.
But when I ...
2
votes
1answer
155 views
Using header files
I have a piece of code I keep using in new notebooks over and over again and I have to copy and paste it in each new notebook. Problem arises: if I update the code in one file I have to manually do ...
2
votes
1answer
71 views
What replaced ListWaveform?
My old Mathematica code used ListWaveform to produce a sound file from a table of amplitudes and frequencies; this seems to no longer exist. What replaced it?
2
votes
1answer
105 views
How to find full names of all packages already on the $Path?
I'll show one specific example of what I am trying to do, I think it will explain things.
On the default $Path there exist (in version 8) the following 4 packages
...
2
votes
1answer
50 views
Simple problem about shadow symbols in multi-contexts
When I'm tiding up my simple packages, shadow awlays comes out. Here is an example.
Packages1
...
2
votes
1answer
122 views
Not able to load the package in CDF
I am facing a problem in loading the package. My code is working in Mathematica but after deploying it into CDF, it is unable to ...




