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
97 views

SciDraw: Vertical axis not copied into Word 2013 (Windows 7, Mathematica 10.1 SE)

Using the SciDraw package, I created a multi-panel figure of list plots with labels along both the $x$ and $y$ axes. But when I copy/pasting the result into Word, the vertical axis labels are nowhere ...
3
votes
0answers
43 views

What is the appropriate way to handle JVM memory issues in a Mathematica package?

I maintain a large Mathematica package (here) that, for certain operations, calls out to a Java library (here). The details of the libraries are not important, but I've come across a frustration with ...
3
votes
1answer
183 views

How to do individual axis labeling with use SciDraw multipanel figures?

I am trying to make a 6 panel figure for publication where each X and Y axis has its own label. Here is simplified code and its output: ...
1
vote
1answer
49 views

How to unshadow a chosen definition for a function

I want to use the package NCAlgebra. However after successfully installing the package and trying to write some code, basic functions like SetNonCommutative[...] ...
0
votes
1answer
52 views

Can't load Geometry package [closed]

I am trying to use << Geometry`Rotations; but I got this message Get::noopen: Cannot open Geometry`Rotations`. >>". How I can solve this problem?
1
vote
0answers
108 views

Trace of gamma matrices using FeynCalc

I am using FeynCalc package in Mathematica to evaluate some complicated Dirac Traces, but as you know the default convention for the anticommutator of two Gamma matrices in this package is $$\{\gamma^...
5
votes
3answers
104 views

How can I pass replacement rules to a package-defined function and have it understand their context?

I am writing a package where I would like to be able to pass replacement rules to a function inside the package and have the function manipulate its symbols using those replacement rules. However, I'm ...
1
vote
1answer
47 views

FilterOptions Errors with Riemann Sum Notebook on Math World

I am trying to run the notebook for a maximum (upper) integration calculation (hopefully, symbolically). I am using the notebook available at Wolfram Math World (upper left of web page). When I ...
11
votes
1answer
141 views

How to clean up temporary files when the kernel exits?

There are Mathematica packages that must create temporary files to function. If we are implementing such a package ourselves, how can we ensure that the temporary files will get cleaned up when the ...
1
vote
0answers
39 views

Issues with overloading Order [duplicate]

I am pretty new to Mathematica(about 90 minutes) and I have encountered a problem. I have searched the web pretty comprehensively and came up with nothing. For a computing problem that I am solving, ...
5
votes
1answer
113 views

Same name for functions in package and Global context

I am using a package that was written for Mathematica 3 while I am now working on Mathematica 8. I have issues with 2 functions in particular, Order and GraphComplement. They are a part of this ...
2
votes
1answer
127 views

Explicit Contraction of Tensor Indices [duplicate]

Is there any easy way to explicitly contract indices of several given tensors. For example, ...
3
votes
0answers
57 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
95 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
104 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
198 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 $$ \frac{\text{AAB}}{6}-\frac{\text{ABA}}{3}-\frac{\...
7
votes
1answer
103 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
86 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
226 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
122 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
101 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 q\varepsilon^*(p)\...
3
votes
1answer
70 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
150 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
506 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
86 views

Feynarts not working

Update: I use FeynArts-3.7 with FeynCalc 8.2.0. When I enter **<<HighEnergyPhysicsFeynCalc...
29
votes
1answer
553 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
103 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
75 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
83 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 -- (!(\"LevelScheme`...
4
votes
0answers
75 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
110 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
56 views

Error message Graphics`Colors`

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

Fail to Create a package [closed]

This is rather basic. In an empty notebook I type in a single cell ...
6
votes
1answer
100 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
318 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
59 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
77 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
183 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
97 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
137 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
121 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
114 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
49 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
107 views
0
votes
1answer
49 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
72 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
97 views

Strange behaviour of order of execution or bug?

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

Installing packages on “Mathematica Online”

How can I install packages in Mathematica Online? In particular, how can I install the xAct package?