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)

0
votes
0answers
55 views

Problem with loading my custom package [duplicate]

I've been having quite a bit of trouble loading a package I wrote. I've followed the suggestions on related questions on this site, as well as on Mathematica's own pages, and still nothing has worked. ...
0
votes
1answer
188 views

Loading Statistics`Library`

I need to use a number of functions from theStatistics`Library` namespace. Since that is a bit of a mouthful I would like to import it, but I get errors: ...
3
votes
2answers
146 views

ContextPath and autocompletion with subpackages

I'm developing a larger package which includes several subpackages. My problem is, that I can't introduce the symbols in the subpackages to the autocompletion by loading the main package, but by ...
5
votes
2answers
846 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 ...
8
votes
3answers
550 views

How to protect functions in a Mathematica Package?

I'm writing a Mathematica Package with many functions, but only two can be seen/public. I have: ...
0
votes
0answers
34 views

relative directory paths within a mathematica package/what directory does a mathematica package see as local? [duplicate]

I have a package that gets loaded in many notebooks I use, with Import[pathToLibraryDirectory<> "toolkit.m"]; This toolkit in turn loads some Excel ...
1
vote
1answer
112 views

How to input pure function to package?

I would like to input a pure function into a custom written package, but am running into a variety of errors. The package I have created is as follows: ...
3
votes
0answers
67 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. ...
0
votes
0answers
44 views

Functional derivatives in Feynman Path Integral [duplicate]

Is there any package that can simplify functional derivatives in path integrals? For instance the expression (integrate over, $x,y,z,u,v,r,s$): $$\int\delta_{J_{A}^x}\delta_{J_{B}^x}\delta_{J_{B}^x}\...
12
votes
1answer
956 views

Where to download the MathWorld package?

I was trying to run some notebook I downloaded from MathWorld, but lots of them need << MathWorld`Curves` I tried to google it , only to find this, but ...
10
votes
2answers
268 views

The introduction for Context in Wagner's book is out of date? [duplicate]

In Section 8.1.1 (P230 of the book, P249 of the PDF) of Wagner's book, the following example is shown: x = 5; temp`x = 6; Begin["temp`"]; {x, Global`x} The ...
21
votes
4answers
463 views

Result about Context is inconsistent with the description of “Power Programming with Mathematica”

x = 5; temp`x = 6; Begin["temp`"] {x, Global`x, temp`x} The result in my Mathematica session is {5,5,6}, but it's ...
2
votes
1answer
285 views

Extract coefficients of differential form in package RGTC

I am using the Package RGTC to do some calculations in Supergravity. It allows to define differential forms after specifying a co-frame. I am working in with the 10d coordinates $\{t,x,y,z,r,\phi_1,\...
15
votes
2answers
206 views

How to find out what files are touched when Get is called?

Is there a way to capture all package files touched whenever a package is called via Get, Needs, ...
0
votes
2answers
466 views

Is there any Robotic Package in Mathematica?

Is there any Package in Mathematica that deals with Robotics and their application?
5
votes
1answer
112 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: ...
1
vote
0answers
60 views

Changing package content in batch

I would like to know if it's safe to do batch operations in a list of package files, applying a function like this: ...
1
vote
0answers
30 views

How to pass rules to packages [duplicate]

EDIT: After helpful comment from @Mr.Wizard I added the working implementation below for future reference. I wrote a module that does something with variables provided in form of a rule. It works ...
3
votes
2answers
337 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
1answer
176 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
107 views

How to exit a package gracefully in the middle?

How to exit a package in the middle, for example, ...
2
votes
2answers
300 views

Can't find where to download VEST package for Mathematica

In the Internet I have found the article about the VEST package for abstract vector calculus simplification in Mathematica. http://arxiv.org/abs/1309.2561 However, I can not find any reference for ...
2
votes
1answer
484 views

Feynrules -> FeynArts issue

When I try to use model files generated by FeynRules in FeynArts, I always get errors of this form Coupling definition in ...
18
votes
1answer
1k views

What is available for editing Mathematica source code with Emacs?

I can find several Emacs libraries for Mathematica, but I'm not aware of a clear favourite, a definitive list, or of a library which is actively maintained and developed. None of these appear to be in ...
0
votes
1answer
289 views

updating code from 5.0 to 9.0

I am updating a code from a 5.0 version to a 9.0 version. I am speaking about "Advanced visual quantum mechanics". There is a package with this code: ` ...
2
votes
1answer
146 views

How to update package?

when I use `<< PhysicalConstants`` I get the message like :General::obspkg: PhysicalConstants is outdated... see the Compatibility Guide for more infomation... The question is how to update it? ...
3
votes
1answer
134 views

Caching data in Mathematica package

Consider the following: m=Quantity[1,"meter"] If I run the package, it will return 1m But when I load the package, the ...
5
votes
1answer
501 views

Linearized Einstein Equations with Mathematica

I need to compute the linearised Einstein Equations around a fixed metric $g_{\mu \nu}$ which is not the flat metric. Someone knows any Mathematica package or a review that can help me?
14
votes
3answers
307 views

How do I put my packages into Dropbox

I don't want to necessarily put my packages in Mathematica's $UserBaseDirectory, which is on my local hard drive. Can I somehow tell Mathematica to look for ...
4
votes
2answers
151 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 ...
10
votes
1answer
162 views

Is there a way to find out who is importing a package?

After calling some functions, if I look into $ContextPath, I can see that JLink` is in there. Is there a way to find out what ...
2
votes
0answers
169 views

FeynRules Package

Does any one use the FeynRules package? If so, how can I implement a vertex of one Gluon and two octet scalars? I tried ...
5
votes
1answer
210 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
131 views

Debugging the context of a Package

I am working on a package of functions that complement the NeuralNetworks` package that Wolfram provides. I am having a problem with the following code, which is ...
1
vote
0answers
814 views

Problem enabling PlotLegends in Mathematica 8.0

I am trying to make a legend for a simple plot in Mathematica 8, but does not seem to recognise the command PlotLegends. I declared beforehand Needs["PlotLegends`"],...
13
votes
1answer
616 views

Does anyone have experience with performing symbolic regression using Mathematica?

I understand that there is at least one Mathematica package, DataModeler commercially available for symbolic regression. I'm seeking any observations with this or any other similar tool. I'm ...
8
votes
1answer
181 views

FindSelectedFunction for packages - how to make it work?

The Mathematica help menu contains an entry Find Selected Function (Cmd+Shift+F on OSX). If you are working with say Transpose and want to look up its reference ...
0
votes
1answer
106 views

Missing some packages?

I am trying to use a program written by someone else. When I run the program, I am supposed to get a number as a result, however, what I got is some complicated result with "InterpolatingFunction" ...
4
votes
1answer
267 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 ...
21
votes
3answers
2k views

Generate a Random Polygon

Does some package exist with a function that takes a parameter $n$ and generates a random 2D $n$-sided simple polygon (convex or non-convex), possibly within a certain bounding box? It does not ...
5
votes
1answer
514 views

How to make a filled Ellipsoid?

I want to make a filled Ellipsoid, but it seems Filling options doesn't work in Graphics ...
1
vote
1answer
106 views

Is there a TwoColoring function of Graph object?

The following code shows the GraphUtilities package makes a problem for Graph object. I want to use a ...
2
votes
2answers
219 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 ...
3
votes
0answers
129 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: http://www.wolfram.com/broadcast/video.php?...
4
votes
2answers
406 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 ...
6
votes
1answer
126 views

How to suppress automatically generated header in packages?

At the top of the .m file which is automatically generated from initialization cells in a notebook there appears a header: ...
9
votes
1answer
399 views

Lie algebras packages (with E6, F4 & alii … included)

I am looking for an add-on that deals seriously with computations inside exceptional Lie algebras (and obviously classical ones ...): I want at least all standard basic data concerning them & ...
7
votes
2answers
444 views

Summa package problem

I need to use the features of the Summa package but it doesn't work in Mathematica 9. It gives the error Cannot open Utilities`FilterOptions` My question is: ...
10
votes
3answers
2k views

How do I create a package from an existing notebook?

I have a notebook containing some functions, for example: f[x_] := 2*x g[x_] := x^2 Now I would like to convert this notebook to a package, ...
1
vote
1answer
99 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. ...