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
1answer
37 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?
5
votes
3answers
73 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
34 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 ...
1
vote
1answer
50 views

Paramter Scans and $\chi^2$ Test in Mathematica

Is there any in-built function or a recommended package that enables one to find, say, 10 Parameters, which are used as boundary conditions in NDSolve, that minimize $\chi^2$? ...
10
votes
0answers
68 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
80 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
65 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
42 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
84 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
90 views

What is the current structure of a simple package?

Currently, from a variety of examples, and (mostly) the template generated by my IDE, I get: ...
5
votes
1answer
153 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
55 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
76 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
36 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
196 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
113 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
62 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
64 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
71 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
172 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
51 views

Feynarts not working

Update: I use FeynArts-3.7 with FeynCalc 8.2.0. When I enter **<<HighEnergyPhysicsFeynCalc...
18
votes
0answers
224 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
83 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
50 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
73 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
45 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
71 views

Schwarz-Christoffel toolbox

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

Error message Graphics`Colors`

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

Fail to Create a package [closed]

This is rather basic. In an empty notebook I type in a single cell ...
6
votes
1answer
83 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
159 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
45 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
71 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
142 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
53 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
94 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
116 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
96 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
47 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
90 views
0
votes
1answer
47 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
66 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
94 views

Strange behaviour of order of execution or bug?

In[1] and In[3] are identical but the output is different.
6
votes
1answer
168 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
32 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
66 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
168 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
60 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 ...