Questions tagged [packages]
Questions on Mathematica packages, which are self-contained bundles of Mathematica code that add new functions and other functionality.
845
questions
0
votes
0
answers
30
views
Derivatives in the SpinWeightedSpheroidalHarmonics package
Hello I'm using the SpinWeightedSpheroidalHarmonics package from the Black Hole Perturbation Toolkit
.
This package includes the SpinWeightedSphericalHarmonicY, ...
1
vote
1
answer
57
views
Variables in a Package
If I do this:
func1[x_List] := Apply[Plus, x];
func2[x_List] := Apply[Plus, x^2];
func3[x_List, y_List] := Map[(fun1[x] # - fun2[x] #^2) &, y];
...
0
votes
0
answers
42
views
MermaidJS command not working from the paclet
I have installed the mermaid command line package and added it to the environment variable Path and it is accessible from the command line:
But the following ...
1
vote
0
answers
35
views
Autocomplete for package in notebook with context "Unique To This Notebook"
I have the setting that my notebooks their context is unique for each notebook to avoid accidental lingering definitions. I really need this because I'm often distracted and e.g. overwrite files when ...
0
votes
0
answers
21
views
Insert LineLegend outside FigurePanel in SciDraw
I would like to put LineLegend outside of FigurePanel in Multipanel view created in package <...
3
votes
1
answer
151
views
What are some Mathematica packages used for general relativity?
Could you suggest any Mathematica packages that are used for General relativity calculations? Id like to write code to solve the Schwarzchild Lagrangian equation.
1
vote
1
answer
92
views
Is there any Mathematica API for Z3?
Z3 has bindings for various programming languages, e.g., C, C++, Java, Python, and so on. Are there any for Mathematica? Or how to implement one?
0
votes
0
answers
25
views
Unable to plot quasinormal modes using the QNMspectral package
I am trying to follow the advice provided in this paper by Aron Jansen to calculate the Quasinormal modes of a Dyonic AdS black hole (see Sec 4. of the paper) for which I use his package QNMspectral. ...
2
votes
1
answer
53
views
KnotTheory` Passing PD Encoding of a Knot Diagram to Kh
I have a bunch of knot diagrams I would like to use the Kh function in KnotTheory to compute the Khovanov homology for. Almost ...
2
votes
2
answers
105
views
Avoid context mark in Plot labels in package
Minimal example:
...
1
vote
0
answers
82
views
How to output TeX with FeynArts?
I've recently installed FeynArts since I can use mathematica to generate topologies and it comes with a set of commands to make diagrams in LaTeX. However, nowhere in the manual can I find a command ...
4
votes
0
answers
55
views
What is the most convenient way to organize dependencies from paclets?
Do you have any ideas on how to most conveniently and easily organize package dependencies for Wolfram Language projects. I would like to have something like a list of packages in projects for .Net ...
4
votes
0
answers
46
views
Viewing your own documentation
I am currently making a paclet, writing documentation for my package.
When writing documentation with the Documentation tools, it is displayed in an ``unfinished way".
How would it be possible to ...
0
votes
0
answers
48
views
How to install AceFEM in MacOS?
I downloaded the Evaluation/student version and ran Install.nb according to the official installation instructions^1, it returned some errors as follows.
Cannot load installation package. Problematic ...
2
votes
0
answers
89
views
How to obtain documentation on functions inside some of the packages that are automatically loaded by Mathematica?
Mathematica comes with lots of useful functions which seems not to be documented. At least I do not know how to find the API documentation to learn more about these functions and how to use them.
<...
2
votes
0
answers
33
views
Why is a blank auto-magically added to an option value of a function in the WL file of a paclet?
This is an observation I made during the course of writing a Paclet. The following is an example of a function which happens to use a function from the IGraphM package, whose use is affected by the ...
0
votes
0
answers
30
views
Coefficients which depend on summation index for a Hamiltonian in sneg
I would like to perform some manipulations involving a pretty generic Hamiltonian of the form
$$
\hat{\mathcal H}=\sum\limits_{k,k^\prime}V_{k,k^\prime}\hat a_k^\dagger\hat a_{k^\prime}
$$
(where $V_{...
1
vote
1
answer
115
views
Legacy Finance package
There used to be an old package Finance which contained useful functionality for converting between different interest rate representations, ...
0
votes
0
answers
58
views
Unable to use a function from Get with Encode
I am trying to create a proprietary function as discussed in this link:
How to distribute proprietary Mathematica code
So I create a function and dump it into a file
...
1
vote
1
answer
46
views
Load package from notebook directory [closed]
How to import a file in the same directory as the current notebook?
I have tried
Get@FileNameJoin@{NotebookDirectory[], "myPackage.wl"}
but get Get::...
1
vote
0
answers
52
views
Loading a user package when connected to the internet is 4x slower as when not
I have a user-written package (600kB), which I load the standard way:
<<MyPack.m
or
Get["MyPack.m"]
When I am connected to the internet, this takes 18 seconds to load; while when I ...
8
votes
1
answer
123
views
Structure of package with multiple sub-packages
Suppose I have a package with many functions, and I want to divide this in several sub-packages, so that public functions can be used by user as is and also sub-package may depend on functions of ...
0
votes
0
answers
57
views
Controlling my Drone
I have the ambitious plan to paint a wall using a drone. And I would like to do that with Wolfram mathematica.
Does anyone have experience flying a drone with their laptop?
Is it possible to control ...
1
vote
0
answers
94
views
Tracing the phases (i.e. the minima) of a potential
Is there a Mathematica package to trace the minima of a potential as a function of some parameter, returning its phase structure?
Working with particle physics models (in the context of cosmology and ...
0
votes
1
answer
64
views
Problem with functions defined in Module in mathematica package
Might be very naive; I am trying for the first time to develop a Mathematica package as shown below. The intended usage is that the user will load the package, specify the input functions 'Model' and '...
3
votes
1
answer
50
views
Keep Global` context definitions as the default when shadowing occurs
According to https://reference.wolfram.com/language/workflow/HandleShadowingOfSymbolNames.html when a symbol appears in multiple contexts the one loaded (last?) gets precedence in that that context ...
0
votes
1
answer
53
views
Association does not work in package environment
I'm trying to be sneaky with a function and try to have an expression stored as a string (unevaluated) until a desired moment when it will be converted from a string to an expression and then have it ...
4
votes
0
answers
161
views
Basic and advanced topics on mathematica packages
I am interested in understanding what is modernly (2023) considered a good practice in writing packages in mma.
There are already many beautiful SE posts when it comes to packages, but they are ...
0
votes
0
answers
62
views
Some typical symbolic mathematica code in python with the help of Wolfram Client Library for Python
I have downloaded wolfram library in my vs code and ran few common seeing Wolfram Client Library for Python
e.g:
...
1
vote
2
answers
62
views
how to move package from FileNameJoin[{$UserBaseDirectory, "Applications"}] to another location/disk and have kernel/init.m work as before?
After spending more than 1 hr on this, and looking at many questions, I give up as I am not able to figure a solution.
I have my current package in the standard location given by ...
1
vote
0
answers
91
views
Can no longer load Developer package after upgrading to 13.2 from 13.1
Needs["Developer`"]
returns $Failed
with message Get::noopen cannot open Developer...
4
votes
0
answers
79
views
Python-like virtual environment for Mathematica?
Is there a way to control the versions of dependencies (packages) of Mathematica code, similar to virtual environments in Python (conda or venv), in the interests of reproducibility?
4
votes
1
answer
71
views
problem using package to verify solution of ode with Association, Naming scope/context handling [duplicate]
I learning how to use packages. I found a big problem. Here is description of the problem is, then a MWE is given.
This small package takes in an ode and ...
4
votes
2
answers
153
views
How to use OOP when the object is inside a Mathematica package?
I learned how to use OOP in Mathematica as shown by Leonid Shifrin (and others in this forum over the years).
It works well, until I moved the module that represents the object to inside a package, ...
3
votes
1
answer
166
views
How to load a package? [closed]
I am new to github and loading github pacakges on Mathematica. I'm trying to follow examples from here. I used the PacletDirectoryLoad to load the packge from github but I get the following error. Any ...
0
votes
0
answers
32
views
How to make a GUI to analyse teh imported data background of mathematica and one see output only at the interface
I have a script in mathematica to analyse a dataset. The process is as follows:
I have imported my datafiles from the PC.
I perform some mathematical analysis to extract some parameters and plot the ...
2
votes
1
answer
83
views
Wolfram Language Paclet Repository minimum version
I'm thinking of moving my EcoEvo package to the Wolfram Language Paclet Repository. This page says that Mathematica v13.0 is required for development, but I'm interested in the minimum version for ...
1
vote
2
answers
132
views
Is there a fast method of clearing symbols in the sub-contexts named by other symbols?
When writing packages I met the following problem. The way I name helper functions is like
...
1
vote
0
answers
59
views
Is there a way which allows getting the code of commands from contributed packages? [closed]
I guess there is some simple way for getting the code of commands from contributed packages. Is there a specific command for that?
1
vote
2
answers
477
views
Code for Tensor decomposition
I would like to know if there is a package or some MMA code to perform tensor decomposition as e.g. defined in a paper by Robeva "Orthogonal decomposition of symmetric tensors" or some ...
3
votes
2
answers
222
views
The problem with "Symbol appears in multiple contexts" when loading package with same function name in subpackages
There is a similar question about this, 8 years ago!, but the answer there does not really give what to do. The answer just says yes one can use same function name in different packages but has use ...
2
votes
2
answers
149
views
'Update' and how to use variables to define patterns in functions' arguments...?
This seems like an obvious issue that I have nevertheless never encountered before.
In a package, I want to use a variable to define a pattern that is used in the definition of some functions. However ...
5
votes
0
answers
60
views
Dedekind Zeta Function in Mathematica (at least for quadratic number field)
Does there exist some way to use Mathematica to compute the Dedekind Zeta function for an arbitrary algebraic number field? Or does there exist some package to do this?
I am actually only interested ...
1
vote
0
answers
91
views
Error message installing Ricci
I just started using Mathematica. With the goal of solving
a Loop integrals over a scalar gravity interaction. For the tensor calculus necessary i wanted to use, Ricci. https://sites.math.washington....
1
vote
1
answer
122
views
Updating a built-in function in Mathematica
I am using Mathematica 10.2 and would like to know how to update a built-in function.
For example, I am trying to utilise the ScalingFunctions and ...
0
votes
0
answers
48
views
How to prevent displaying sub and overscript as plain strings in .wl files?
Problem:
String with subscripts and overscripts are formatted as plain text after saving, closing, and reopening the document. It makes it hard to edit function usage because text become unreadable if ...
2
votes
1
answer
121
views
Unwanted fill color in David Park's Presentations package plots
The Presentations package by David Park allows plotting of complex curves and other objects defined in terms of complex numbers.
A free version of the package, but without any documentation, is ...
3
votes
2
answers
105
views
Unable to use KnotTheory
I've installed the KnotTheory package, following the instructions here. But when I try to use it I get this error:
...
4
votes
0
answers
86
views
How to make a package of notations using the notation package
Alternative question: how to postfixify prefix operators like @, /@, @@
I would like to make a package of notations using the notation package. I want to make postfix notations for common prefix ...
10
votes
1
answer
169
views
How can I gracefully stop loading a package based on Mathematica version number?
I recently shared some work with a colleague and realized that his having v12 caused issues, as I used some new-to-13 functions.
How can I put a requirement for a minimum version into my package?
Here'...