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)

1
vote
1answer
62 views

Why is a function I defined in a package not visible when I load the package? [duplicate]

I made a package containing some functions in the following way. ...
2
votes
1answer
122 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 ...
5
votes
0answers
68 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 ...
0
votes
1answer
121 views

Mathematica .m file can not open in Ubuntu

My operating system is Ubuntu. I add some new .m file to /usr/local/Wolfram/Mathematica/9.0/AddOns/Packages/ and then call for it in Mathematica, but failed with the message Get::noopen: "Cannot open ...
3
votes
2answers
612 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
142 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. ...
1
vote
0answers
94 views

CDF with numerous independent manipulate objects

I have been working on my senior project that involves the creation of a CDF with multiple Manipulateexpressions. I need to protect my code so I have been trying to ...
4
votes
1answer
106 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 ...
0
votes
1answer
72 views

How can a package use a variable of a notebook?

I have defined a function g in a package. It is: g[x_]:=x/.t->3 Now I work in notebook with the command: ...
4
votes
3answers
271 views

Can't load LevelScheme package

My problem is that I can not load the LevelScheme Package. I am using Mathematica 8. I downloaded and unzipped the folder from this website. I saved it in the ...
6
votes
0answers
80 views

Automatization of SyntaxInformation and argx?

Does anybody have a good way to automate the setting of SyntaxInformation for any custom function? I have a ton of functions for which I want to set SyntaxInformation, and doing it by hand seems a ...
5
votes
1answer
171 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. ...
3
votes
1answer
134 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 ...
10
votes
4answers
738 views

Plotting ErrorBars with a different style

I would like to plot the error bars of ErrorListPlot with a different style than the points. I know of ErrorBarFunction, but ...
10
votes
1answer
98 views

When is the output of examples in function documentation rasterized?

Upon building documentation in Workbench, Workbench sometimes converts the output of examples on function pages into rasterized images, and sometimes not. Does anybody know what controls this ...
4
votes
2answers
235 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 ...
1
vote
2answers
116 views

NumberForm in logarithmic plot (with LevelScheme package)

I am trying to plot some data using the LevelScheme package, but changing the logarithmic scale to display values in NumberForm ...
25
votes
1answer
780 views

Recommended settings for git when using with Mathematica projects?

Background I'm relatively new to git — currently overseeing an offshore .NET-based development project on GitHub within a private business account, but little experience beyond that. I'd like to set ...
13
votes
1answer
167 views

Creating documentation for sub-packages in Workbench

I'd like to create proper documentation for a package of mine, and Workbench in principle provides the tools to do this. However, I've split my package into multiple sub-packages (because I found it ...
14
votes
2answers
161 views

How to find the package file that stores a certain symbol?

Is it possible to figure out in what file a certain packaged symbol lives in (assuming there is no shadowing between multiple identical symbol names)? I would like to have a function that if, given a ...
2
votes
1answer
152 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 ...
10
votes
1answer
384 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 ...
3
votes
0answers
89 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?
0
votes
1answer
230 views

Get function not working [closed]

Here is what is at the beginning of one of my packages. I have the same problem with any package in which i'm trying to get any another package. ...
11
votes
1answer
157 views

Predictive code completion and custom functions in contexts

Suppose I work for organisation PQR, and have been developing a suite of packages, PQRUtilities, PQRVisualization etc, all of ...
3
votes
2answers
167 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 ...
5
votes
3answers
256 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 ...
4
votes
1answer
449 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 ...
2
votes
1answer
72 views

Can I place a link to a package file (.m) in my Applications folder

I am developing a package and would like to be able to test it without having to copy the package file to my $UserBaseDirectory/Applications folder for each change, ...
9
votes
3answers
276 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
155 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 ...
3
votes
3answers
103 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? ...
4
votes
1answer
201 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. ...
6
votes
1answer
141 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. ...
8
votes
2answers
246 views

Problem with PlayerPro recognizing a proprietary package

This question follows on from my earlier question Can Wolfram's Player Pro Use Proprietary Packages. That question appeared to have established that, yes, PlayerPro can use proprietary packages. ...
10
votes
1answer
232 views

Can Wolfram's Player Pro use proprietary packages?

A few entwined/related questions: Can Wolfram's Player Pro use proprietary packages? I have searched Wolfram's site pages on Player Pro and don't see anything that provides a clear answer to this ...
4
votes
0answers
177 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 ...
0
votes
1answer
206 views

Integrating polynomial functions over polytopes with an add-on package

There is a Mathematica package to evaluate integrals over polytopes: http://library.wolfram.com/infocenter/Books/3652/ In the documentation (Functions.nb file) I ...
3
votes
0answers
143 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 ...
7
votes
1answer
340 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 ...
7
votes
1answer
91 views

Attaching the same message to several symbols

It is common in many packages, as well as system symbols, that the same message can be issued by several functions. Here's an example: One mechanism that can be used for this is to define the ...
8
votes
4answers
602 views

Numerical integration of a numeric data available as a nested list

I have some numerical data in the form of a list with the following structure: {...{x,y,z},...} defining a surface z=z(x,y) in a 3D space (x,y,z). The data came from a simulation, and I am ...
3
votes
1answer
136 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 ...
10
votes
1answer
543 views

Load a Mathematica Package via .Net code

I'm using C# to pass data to Mathematica and return graphs: ...
5
votes
1answer
166 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 ...
14
votes
1answer
387 views

Creating a R DataFrame like construct in Mathematica

I kept getting my data mixed up so I decided to see if I could construct a package adding a R DataFrame like construct to Mathematica. I managed to cobble something together that sort of works, but ...
7
votes
3answers
166 views

How to define a package without adding it to $ContextPath

How can you introduce a package, so that it is listed in $Packages, without adding it to $ContextPath? Note that this question ...
2
votes
2answers
249 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 ...
4
votes
2answers
293 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
121 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 ...