Questions on Mathematica packages, which are self-contained bundles of Mathematica code that add new functions and other functionality.

learn more… | top users | synonyms (1)

5
votes
1answer
322 views

How to make a filled Ellipsoid?

I want to make a filled Ellipsoid, but it seems Filling options doesn't work in Graphics ...
5
votes
1answer
782 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.
5
votes
1answer
84 views

Error When Creating Package

I am trying to make my own package based on the code from this Question. The following is the code from that page: ...
5
votes
1answer
271 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. ...
5
votes
1answer
202 views

VariationalD giving the wrong solution?

EDIT: As pointed out in the comments, VariationalD gives a variational derivative (which I don't want), not a derivative with respect to a function (i.e. ...
5
votes
1answer
178 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 ...
5
votes
0answers
72 views

Does one need to be careful about loading multiple (many) contexts or packages in the same session?

I have a number of large pieces of precomputed data which I am considering putting into individual packages in order to load them (via DeclarePackage) and unload ...
5
votes
0answers
228 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 ...
5
votes
0answers
118 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
2answers
258 views

Simplifying the trace of a matrix expression

I have a long expression involving matrices that I derived using the NCAlgebra package. Can I simplify the trace of the expression? For example, say b is a scalar ...
4
votes
2answers
128 views

Listing all usage messages from a loaded package

I am writing several packages in collaboration with others. In order to help the group use my packages, I want to provide them with a simple reference of function names and usage messages. How can I ...
4
votes
2answers
127 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
150 views

How to use SuperLog by loading SMLE.m

I am researching a software reliability model that has many parameters that need to be estimated. I want to use a maximum likelihood estimator (MLE) to estimate those parameters. After I searched ...
4
votes
1answer
600 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 ...
4
votes
2answers
342 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 ...
4
votes
2answers
149 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
138 views

How to transform a DumpSaved .mx file to .m file conveniently?

I have many DumpSave-d .mx files under a directory. They are generated under Linux. The .mx ...
4
votes
0answers
120 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
170 views

Problem with Creating Mathematica Package

Currently I am working on creating the package on Mathematica version 9 on Windows 7. Here is my code as follows: ...
3
votes
2answers
188 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
1answer
191 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
247 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 ...
3
votes
1answer
83 views

How to exit a package gracefully in the middle?

How to exit a package in the middle, for example, ...
3
votes
3answers
109 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
195 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
147 views

How to use MathPSfrag package in Mathematica 10?

I am interested to use LaTeX like labels in the plots that I prepare in Mathematica, and hence, I downloaded the MathPSfrag package from this website ...
3
votes
2answers
184 views

Package for representation of groups (group theory)

I wanted to know if there is a package which allows to compute representations of a group like the definition representation, adjoint and so on (for example the Pauli matrix for $SU(2)$ if I specify ...
3
votes
2answers
81 views

Testing a package in Mathematica 9

I am in the process of writing a package, but my way of testing it just seems wrong and inefficient. Each time I edit the .m file, I save it, quit the kernel, call the package in a separate notebook ...
3
votes
1answer
78 views

Run encoded package code through .NET/Link?

An earlier question of mine, Prevent package from being opened in a notebook interface, never received an answer, but Albert Retey's comments did lead me to an entirely different solution. To secure ...
3
votes
2answers
1k views

Command line execution of Mathematica notebooks and conversion to .m

Sometimes one may want to execute a notebook via the command line (for example to run it remotely). As far as I know it's not possible to run notebooks directly, but ...
3
votes
2answers
186 views

Package relative file path specification

I have some packages inside a folder (named Packs) that is in the same file level of some executed package. ...
3
votes
1answer
160 views

Creating event handler with ImplementJavaInterface inside a package

I am trying to make my Mathematica function to serve as an event handler for the events generated by a Java object. Specifically, I have a Java object that connects as a client to a server that ...
3
votes
1answer
80 views

Installing R packages using RLink on Mac OS X

Is there any updates regarding installing CRAN packages via RLink in Mathematica 10 on Mac OS X? Or are we still stuck with the base R package and that's it? I was able to point to my R distribution ...
3
votes
1answer
56 views

ParallelTable Works in Regular Notebook but Gives Error When Packaged

Consider the following: ...
3
votes
2answers
98 views

how to load packages on local computer when using remote kernels

I usually works remotely using kernels on our hpc and front-end on my local laptop. This enable me do relatively large computation within my laptop(IP address of my laptop may change frequently). But ...
3
votes
1answer
162 views

Namespaces in Mathematica

In many programming languages one can define a namespace with namespace abc How can the similar be done in Mathematica? The ...
3
votes
1answer
95 views

CycleIndex in v8

If I type ?CycleIndex I get Information::notfound: Symbol CycleIndex not found. >> If I then type ...
3
votes
1answer
139 views

Mathematica Library

I created a Mathematica packagr and then I used the Needs function to add the library to my .nb file, but when use a function in my .nb file and the function is built in my library it comes up with ...
3
votes
1answer
113 views

Should I end all definitions from packages with semicolon?

I noticed that if I open a .m file in Mathematica and click on the Run Package button, all the ...
3
votes
1answer
152 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
265 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
53 views

Needs, Get and << [duplicate]

I think I read somewhere that Needs is the recommended way to import dependencies, but I usually see << used in examples. ...
3
votes
0answers
93 views

Package for interacting with the AR.Drone by Todd Gayley?

Anyone in possesion of the package develop by Todd Gayley to interact with the AR.Drone? Haven't been able to find it anywhere... Referring to this video: ...
3
votes
0answers
100 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
157 views

Does Mathematica support collaborative filtering and recommendation systems?

Does Mathematica support collaborative filtering and recommendation systems such as can be found in Apache Mahout? I could not find any resources about advanced data mining techniques, beyond ...
3
votes
0answers
80 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
81 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
325 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
2answers
132 views

How to unprotect GeneratingFunction

I'm trying to add custom downvalues for GeneratingFunction, and to do so I thought I just had to Unprotect it. However, that ...
2
votes
1answer
160 views

Errors when using ParallelTable inside a package

I'm developing a package that contains a function that requires evaluation of an expensive Table, so I use ParallelTable ...