Questions tagged [packages]
Questions on Mathematica packages, which are self-contained bundles of Mathematica code that add new functions and other functionality.
232
questions
3
votes
1
answer
183
views
Assigning ::usage in a package for in Private generated symbols?
I'm having difficulties assigning ::usage in a Mathematica package for symbols in a list or dataset, that will only be defined later in a ...
3
votes
1
answer
848
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,\...
3
votes
1
answer
814
views
How can I call the R-programming packages in my Mathematica?
I am trying to call the R-programming package called highfrequency in my Mathematica so that I can use its function rCov. I ...
3
votes
1
answer
297
views
Creating event handler with ImplementJavaInterface inside a package
I am trying to make my Mathematica function to serve as an event handler for the events generated by a Java object.
Specifically, I have a Java object that connects as a client to a server that ...
3
votes
1
answer
234
views
Autoload a package
I want to aoutoload a package at the beginning of a notebook.
I set up my directory as written here
How to use the Autoload directory?
So, I have these files:
../Work/MyFile.nb
../Work/Autoload/...
2
votes
1
answer
143
views
Passing Package Dependencies to Subkernels
Say I have a function f[x_,...]:=... in a *.wl-Package form that depends on a bunch of Packages (some other *.wl files), and say I want to call this function ...
2
votes
1
answer
254
views
Formatting in *.m file
I have my own package (just a bunch of functions) in the *.m file, which I load using the Needs[] command. Everything works fine ...
2
votes
1
answer
1k
views
ExcelLink: "Choose a Mathlink program to launch" after upgrading from 10.0.2 to 10.1
After upgrading to 10.1, I now get a prompt "Choose a Mathlink program to launch" when I call code that uses ExcelLink. This code worked prior to the update. I am wondering if this is a ...
2
votes
0
answers
1k
views
Problem enabling PlotLegends in Mathematica 8.0 [closed]
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`"],...
2
votes
1
answer
2k
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 ...
2
votes
1
answer
198
views
AutoGeneratedPackage Formatting
If you do Ctrl+Shift+o you open an option inspector.
And then you can enable ...
2
votes
1
answer
1k
views
packages will not load [closed]
I have a package at /Users/me/Desktop/Mathematica/MyPackages/SamplePackage.m. It looks like this:
...
2
votes
1
answer
333
views
Why FormCalc gives zero amplitude for this process
Why when I generate self energy diagram of for neutrinos, FormCalc gives zero amplitude ? here is the code
...
2
votes
1
answer
1k
views
How to list all functions in a package? [duplicate]
I got a package which can be loaded in MMA. The manual for the package does not give demonstrations of all functions/commands. Hoe can i find all the commands in the package?
1
vote
0
answers
671
views
Clearing out a package
I'm just beginning with packages, so this is definitely a beginner's question. Suppose that I do this in a notebook:
...
1
vote
0
answers
457
views
Now why LoopTools do not make calculation
In deed I still in calculating the self energy diagram I started in this post
Why FormCalc gives zero amplitude for this process
Here is the code I use after the last answer
...
1
vote
0
answers
54
views
Automatically export .nb to a package upon saving while preserving section headings
Is it possible to automatically export a .m package when I save my .nb as can be done using the option ...
1
vote
1
answer
390
views
Simplifying quantum operators (ladder operators with multiple modes)
Similar to this question, I am interested in working with an implementation of quantum ladder operators.
I've been trying to use this "Quantum Mathematica Package" to solve some lengthy ...
1
vote
1
answer
470
views
Where I can find RGTC package? (2021 version)
I am not being able to find the RGTC package for Mac. I followed the instructions of this Mathematica Stack Exchange answer, however, the documentation notebook says "Not Found".
1
vote
1
answer
142
views
Mathpsfrag: failed setup at MathPSfragConfigurationTest (UnPSfrag) line (Windows 8)
I'm trying to follow the documentation on how to get mathpsfrag set up on Windows 8 (64-bit). It failed at the line
...
1
vote
1
answer
86
views
Package to simulate a computer?
The post Where can I find good textbooks for Numerical Methods in Mathematica reminded me that at one time there was a Mathematica package where you could simulate a hypothetical computer: you could ...
1
vote
1
answer
99
views
Differentiation inside package [duplicate]
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
...
1
vote
1
answer
467
views
How to set HeavisideTheta[0] to 1 permanently
I always meet the HeavisideTheta[0] = 1 during my work, every time I need to use the function Replace[] to finish the job, which ...
1
vote
1
answer
81
views
Context issues when using NDSolve and rule substitutions in a package [duplicate]
I have a .wl package and a demo .nb notebook. The package file is testPackage.wl and it ...
1
vote
1
answer
75
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
1
answer
201
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. ...
1
vote
0
answers
249
views
Multifractal Package - Description of Multifractals
I am trying to run this Multifractal package given in the classical book of Baumann — Mathematica for Theoretical Physics II. The problem is that the code does not work, that is I have no plots. In my ...
0
votes
2
answers
1k
views
Where can I find the package RGTC?
I am unable to find the package RGTC which is the prerequisite for the package Surface Charges that I require. All places I searched for only provide one download link which gives Error 404. Can I ...
0
votes
1
answer
472
views
Feynarts not working
Update: I use FeynArts-3.7 with FeynCalc 8.2.0. When I enter **<<HighEnergyPhysicsFeynCalc...
0
votes
1
answer
67
views
Wrapped Association into a "structure": how to define Equal[] and what are the good practices for package dev?
Using a nice answer https://mathematica.stackexchange.com/a/197936/42847 I got from a previous question I define:
...
0
votes
1
answer
681
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
1
answer
189
views
How to avoid namespace leaks?
Below is a toy package that illustrates what I mean by "namespace leaks".
...