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)

2
votes
1answer
52 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 ...
2
votes
0answers
97 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 ...
2
votes
0answers
82 views

What exactly does AddTeX2Eps do and how does one use it?

What exactly is Janko Slavic's addon package AddTeX2Eps supposed to do, and exactly how does one get it to work? I do understand it's supposed to allow one to use TeX ...
1
vote
1answer
77 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: ...
1
vote
1answer
179 views

How do I insert a piece of code in Mathematica?

In Fortran, I can use include "file" to insert a piece of code. Is there a similar method in Mathematica?
1
vote
1answer
189 views

Recovering vertex names from Combinatorica Graph

According to WRI tech support: Combinatorica functionality is not technically deprecated, though it is our hope that future versions of Mathematica will subsume it entirely by incorporating its ...
1
vote
1answer
89 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? ...
1
vote
1answer
100 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 ...
1
vote
2answers
128 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 ...
1
vote
1answer
263 views

Complex Region using Presentations Package

Just purchased the Presentations package. First sketched this region: ...
1
vote
1answer
210 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 ...
1
vote
1answer
90 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 ...
1
vote
1answer
65 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. ...
1
vote
0answers
40 views

Best practice to group and have your favorite custom functions available at startup [on hold]

The mathematica stackexchange site is a treasure trove of great functions that the user community has shared to make the use of mathematica easier. Many of those functions are very useful for daily ...
1
vote
0answers
53 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
102 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 ...
1
vote
0answers
99 views

How to automatically load package in Player Pro by making backup files of init.m? [closed]

I dont know whether I am asking the right question or not but I am curious to know whether we can automatically load the package in ...
1
vote
0answers
174 views

Package autoloading not working in CDF and Player Pro

I have made a package BeginPackage["top`"] t[x_]:=MessageDialog["This is top"] t1[x_]:=MessageDialog["This is top1"] EndPackage[] and used the code of this ...
0
votes
3answers
801 views

Examples of (well coded) packages using custom notation

Which packages do you know of, that have the following properties: using custom notation (for input AND output would be preferable) well coded & designed (from your subjective perspective!)
0
votes
2answers
170 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 ...
0
votes
1answer
59 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: ...
0
votes
1answer
89 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: ...
0
votes
1answer
160 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 ...
0
votes
1answer
213 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: ` ...
0
votes
1answer
214 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 ...
0
votes
1answer
61 views

How I can define a new function as a function argument?

I need to pass a function with t as independent variable as a function parameter and want to create a new function of the same through this provided the argument of another function. Here is my code. ...
0
votes
1answer
78 views

Getting “Null” output from package?

I have a script written to test a package as follows: ...
0
votes
1answer
140 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 ...
0
votes
1answer
310 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. ...
0
votes
1answer
85 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" ...
0
votes
1answer
114 views

Images in package Not visible

I want to make a package where some variables are initialized to images. but when i save the package, all images are in the form of ImageData that are very long. ...
0
votes
1answer
512 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 ...
0
votes
0answers
35 views

Needs entry point of a package from a Mathematica script

I am writing a bunch of Mathematica scripts to run command line in a HPC environment. I am organising my solution in small chunks I can test separately. So I have a directory structure like: ...
0
votes
1answer
45 views

how to make contents of package visible to the autocomplete system? [closed]

I have created a package file like this, in "/path/to/lib/tools.m": ...
0
votes
0answers
12 views

From ReadList[package,String] back to a Package

I read in a package as a list of strings Using ReadList ReadList["package1`", String] StringReplace can then be used on (e.g. mapped over) this list of strings. Is there anyway to save/export the ...
0
votes
0answers
56 views

CleanSlate[] not working?

...
0
votes
0answers
37 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
0answers
23 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 ...
0
votes
0answers
47 views

How to hide global variables in package?

in the package I'm writing I have a list of global variables which should not be visible from a notebook. Here's an extract of the package: ...
0
votes
0answers
20 views

Symmetric sum and Muirhead's Inequality

I was able to find some reference for symmetric polynomials but not for the symetric sum (see http://en.wikipedia.org/wiki/Muirhead%27s_inequality#Symmetric_sum-notation_tricks ) Please could anyone ...
0
votes
0answers
40 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$): ...
0
votes
0answers
48 views

g00 (metric tensor) not explicitly evaluated in FeynCalc

I am learning Mathematica and FeynCalc by doing some basic cross section calculations. I have an issue with trace calculations: When I plug in for instance the ...
0
votes
0answers
24 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 ...
0
votes
0answers
50 views

FormCalc Troubleshooting

I was wondering if someone knows enough about the FormCalc package to help me out: I am using FeynArts to generate Feynman-diagrams for certain tree-level processes in my own model and FormCalc to ...
0
votes
0answers
89 views

FeynArts and FormCalc

I installed the FeynArts and FormCalc packages and there were no any errors during installation. Now I try to calculate an ...
0
votes
0answers
48 views

Is there SVM packages available for free? [duplicate]

I want to do date minings. And do you know some packages that have been made available online? I am using Mathematica 8 and 9. Thanks.
0
votes
0answers
290 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 ...
0
votes
1answer
183 views

How can I load packages automatically after reopening Mathematica [duplicate]

Possible Duplicate: Automatically load packages at startup I have made two packages "Package1" and "Package2". Package2 calls Package1. it works fine.But everytime I am reopening ...
-1
votes
1answer
100 views

Is there any Robotic Package in Mathematica?

Is there any Package in Mathematica that deals with Robotics and their application?