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)

3
votes
0answers
52 views

Can't load a package that used to load [closed]

I created and used a package a number of years ago, Mathematica 3.0, and I am now trying to load and use that package under Mathematica 10.0. I had to clear up some function name conflicts that had ...
7
votes
1answer
90 views

Recommendations about modifying usage of built-in symbols

In my package, I use some of the built-in Mathematica symbols in non-canonical ways. Right now, I use them as Options or ...
4
votes
0answers
101 views

What is the current structure of a simple package? [duplicate]

Currently, from a variety of examples, and (mostly) the template generated by my IDE, I get: ...
5
votes
1answer
189 views

How to write polynomial expression as commutator form?

I want to write some polynomial expressions as commutator form. For example : $$ \frac{\text{BA}}{2}-\frac{\text{AB}}{2} = -\frac{1}{2}[A,B] $$ or $$ ...
7
votes
1answer
82 views

Non-commutative algebra (NCAlgebra): How to properly SetCommutingOperators

I am starting to work with non-commutative algebra in Mathematica and had a look at the NCAlgebra package. I installed it and can use its functions. However, what I am struggling with is the ...
0
votes
1answer
85 views

Package to read in data from excel files

I want make a package to add a function to Mathematica that reads all excel files is the working directory that is set after the package is loaded. ...
3
votes
0answers
38 views

Java anonymous functions from JLink?

JLink is really great to act on Java objects and access Java static methods. I'm asking myself if there would be a way to have access to a more recent Java syntax that allows anonymous functions, ...
15
votes
1answer
208 views

Can I emulate Wolfram's automatic package updating in my own packages?

It seems that some Wolfram-provided packages are smart enough to automatically check with the Wolfram servers, notice when a newer version is available, and download it, so that the user always has ...
0
votes
0answers
40 views

Probleme with Ted Ersek's RootSearch package [duplicate]

The following question is a logical continuation of this one. The Ted Ersek's RootSearch package doesn't work with this code: ...
6
votes
1answer
115 views

What is the reason that $zz^*$ is not written as $ |z|^2$ sometimes?

For a general (complex) number $z$ I sometimes get terms that explicitly writes (for instance) $$2zz^*+|z|^2. $$ I should add that these expressions come from long calculations involving packages ...
1
vote
1answer
87 views

FeynCalc: Why do LeviCivita remain after Calc/Contract?

In (perhaps even in older versions) version FeynCalc 9.0.0 sometimes, on the amplitude level, one gets expressions of the form $\epsilon^{\alpha ...
3
votes
1answer
67 views

Limit functionality in WildCats

Does the latest version of the WildCats (diagrammatic Category Theory) package support the calculation of limits (the associated tutorial section is empty)? If so, can anyone point me to a simple ...
0
votes
1answer
123 views

How to load two packages?

I want to use FeynArts and FormCalc. I've saved them in two different folders and I want to load and use both of them. This is how I load one of them: I write ...
1
vote
2answers
414 views

How to install and use FeynArts?

I want to be able to use both FeynCalc and FeynArts (together seems impossible, I'm fine with using them separately for now). I don't know how to install FeynArts and run the simplest examples. I ...
0
votes
0answers
78 views

Feynarts not working

Update: I use FeynArts-3.7 with FeynCalc 8.2.0. When I enter **<<HighEnergyPhysicsFeynCalc...
28
votes
0answers
454 views

What is the difference between a .wl package and a .m package?

In Mathematica 10.x, one now has both .wl Wolfram Language Packages and .m Wolfram Mathematica Packages. What's the ...
2
votes
1answer
97 views

Why must I specify the Global context for a symbol in a private package?

I have written two versions of the function below in a package. When I load the package and call the function, Why does the first version where the variable s has no explicit Context return the long ...
1
vote
0answers
67 views

Installing feynarts diag [closed]

I'm trying to install this package: http://www.feynarts.de/diag/, I followed the instruction entering ./configure make make install but when I type ...
0
votes
1answer
79 views

Loading Level Scheme error [duplicate]

I am new to Mathematica. When I am using: Get["LevelScheme`"]; it gives the following error: Get::noopen: "-- Message text not found -- ...
4
votes
0answers
68 views

How to write Coordinate Chart in Xcoba in index form?

I am using xCoba for manipulating tensors. I do the usual, defining my metric, manifold, chart etc. ...
3
votes
0answers
91 views

Schwarz-Christoffel toolbox [closed]

Is there a toolbox for working with Schwarz-Christoffel transformations in Mathematica? More generally, is there a toolbox for visualizing conformal mappings in the complex plane? There are a lot of ...
0
votes
1answer
55 views

Error message Graphics`Colors`

I am having trouble running this code: ...
1
vote
0answers
58 views

Fail to Create a package [closed]

This is rather basic. In an empty notebook I type in a single cell ...
6
votes
1answer
97 views

How to delay the definition of a function from the time of package initialization to when it is first called

I am writing a package where a couple defined functions take a very long time define at initialization time (because they are large CompiledFunctions). However ...
5
votes
2answers
256 views

Evaluate notebook from other notebook

I have a notebook ("notebook 1") which in the beginning sets some parameters, does something depending on their value and saves the result to a file, say: ...
1
vote
0answers
56 views

Running a script that needs a package

I am running a resource extensive notebook, and so I am trying to break it down into a .m file so that I can run it quicker and without using the mathematica interface. The problem is that my notebook ...
2
votes
1answer
76 views

What is the Java converter?

I notice that there is a directory: C:\Program Files\Wolfram Research\Mathematica\10.2\SystemFiles\Converters\Java. What is this? I could not find any documentation ...
4
votes
1answer
171 views

EquationTrekker using Mathematica 10.2

I wonder whether the problem that arise with the following code is specific to my machine, as it seem to work with the documentation example. ...
1
vote
1answer
56 views

No names when loading package [closed]

I want to use mu own package. This is the procedure I take: 1) In Mathematica notebook I put the following code taken from code ...
4
votes
1answer
123 views

Change Notebook's Default Context

In my workflow, when testing/developing packages, It's an common situation to test internal packages functions that has been already loaded with the package, so they are in the ...
4
votes
1answer
119 views

How can I temporarily suspend the Combinatorica package?

Sometimes after I load the Combinatorica package by entering Needs["Combinatorica`"], I need to use Mathematica for something like: ...
4
votes
1answer
107 views

User defined packages don't load with $\mathtt{Needs}$ or $\mathtt{Get}$

As an introduction to packages in Mathematica I'm following this short guide by Leonid Shifrin, and tried using the sample package provided in that answer. However, both ...
1
vote
1answer
48 views

How to reference StringExpression named parts from a package without full Context path?

I have a long StringExpression in a package returned by a function. There are some named parts in the expression that I would like to reference when I use the ...
1
vote
1answer
105 views
0
votes
1answer
48 views

Transforming the x-axis of a figure created with customticks package [duplicate]

I have some data which i inter alia define and invert ...
3
votes
1answer
71 views

How to use special characters in .m file?

I ran into a strange problem with a function that I want to include in a package file (.m): Cleanup[data_] := data /. (\[Placeholder] -> Missing[]) When I ...
5
votes
2answers
95 views

Strange behaviour of order of execution or bug?

In[1] and In[3] are identical but the output is different.
6
votes
1answer
219 views

Installing packages on “Mathematica Online”

How can I install packages in Mathematica Online? In particular, how can I install the xAct package?
3
votes
0answers
36 views

Context is not clearable and does not reload [closed]

I'm just going crazy with Mathematica Contexts as they absolute do not work as intended. Simple Example: Begin["TEST`"] Hello[s_]:=s Bye[s_]:=s End[] Now using ...
6
votes
0answers
78 views

Mathematica package for explicit matrix representations of group generators?

While there are several packages that are capable of working with weights and roots (for example LieArt), I couldn't find any package that spits out explicit matrices for the generators, for example ...
2
votes
1answer
197 views

Saving file as .m causes it to save as comments

I am attempting to create a Package and so am saving a notebook with the code from Mathematica's example ...
1
vote
1answer
64 views

Differentiation inside package

I am trying to put all my functions in a single package and some of them do not work because of differentiation. Suppose I have the following package ...
7
votes
2answers
139 views

Inserting symbols' definitions during read time of the code

Let's say we've got a package: ...
9
votes
2answers
125 views

Coding practice Notebooks vs. Packages: ClearAll?

I have a pretty robust workflow for developing in Notebooks. One element of that workflow is the reflexive habit of saying ClearAll just before a definition so ...
4
votes
2answers
156 views

Use of Ito's lemma in ItosLemma.m (or any other method in Mathematica)

This is a follow-up question on this question: Use of Ito's lemma in ItoProcess My problem is to find some method how to use Ito's lemma in Mathematica. As an example: How can I apply Ito's ...
1
vote
0answers
51 views

Sum of zeros in finite Galois field

In the following code: << FiniteFields` GF[2][{0}] + GF[2][{0}] == GF[2][{0}] GF[2][{0}] + GF[2][{0}] + GF[2][{0}] == GF[2][{0}] Why does the second line ...
4
votes
1answer
147 views

What is the difference between Update, Run Package, Save and Install for packages?

I am building a package, using Mathematica 10.0.2.0. I notice in the displayed window for the package there are buttons labeled Update and Run Package; on the File menu, there is an item for Save; ...
11
votes
1answer
228 views

How can I include functions from a package into a CDF file?

I am building an application which I would like to deploy as a CDF file, and I am struggling to make the CDF exports work correctly with functions pulled from a .m package file. What are good/best ...
3
votes
0answers
38 views

Cross referencing symbols in different packages [duplicate]

I have problems with name space shadowing which I do not know how to resolve. I have two packages which depend on each other. Here is example of two files fooPackage.m: ...
4
votes
1answer
156 views

Can I do constraint programming in Mathematica? [closed]

I would like to know if there is a way to do constraint programming in Mathematica? I think there are no built-in functions, but maybe some of you know some additional packages addressed to the ...