Questions tagged [packages]

Questions on Mathematica packages, which are self-contained bundles of Mathematica code that add new functions and other functionality.

Filter by
Sorted by
Tagged with
0 votes
0 answers
35 views

Kaon Photoproduction Reaction for FeynArts

I'm trying insert this kaon photoproduction into FeynArts (photon and proton to kaon+ and hyperon lambda): any idea how to build this feynman diagram?
0 votes
1 answer
95 views

Where and how can I save a mathematica package

I want to save a mathematica package and then i want to extract and run it from there. How can i do that?
4 votes
0 answers
496 views

BVPH Package 2.0

Hopefully you guys can help with this issue. I am currently using Mathematica package BVPH2.0 to solve hybrid nanofluid in boundary layer flow problem using homotopy analysis method. But I seem to ...
2 votes
1 answer
70 views

How to set the same scaling for multiple density plots while using the ColorBar package or user-defined colorfunction?

I know questions with this theme have been asked before, and the one-line answer to them is- "Use ColorFunctionScaling -> False" But my specific ...
1 vote
0 answers
308 views

How long does it take to load FormCalc package?

I've installed the package (FeynArts, LoopTools, and FormCalc) via FeynInstall. Then, I load the package by <<FeynArts` <<FormCalc` I get message <...
1 vote
1 answer
97 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
23 views

This script included in a package has some error leading to one variable having context different from others

The package modt ...
2 votes
1 answer
68 views

How do I make all the external contexts accessible within subcontexts of my package?

I have a package file MyPackage.wl it has the following commands: ...
2 votes
1 answer
87 views

Adding Greek letters to ToMatlab

I want to add Greek letters to the ToMatlab package. The most recent publicly available version I found is here. There is a section on symbols starting on line 242. I tried adding a line ...
8 votes
1 answer
242 views

Are new-style packages compatible with the Wolfram Paclet Repository?

The package I'm developing is getting hard to navigate as it gets larger. I've started experimenting with using the new-style package format described in this question to break it up to subfiles. ...
1 vote
1 answer
139 views

Legacy Finance package

There used to be an old package Finance which contained useful functionality for converting between different interest rate representations, ...
1 vote
0 answers
31 views

How to make "Get Help" entries for custom package?

I've got a small collection of Mathematica tools that I'd like to make into a package. One of the nicest features in Mathematica is the ability to right click on any built-in function and just select &...
3 votes
0 answers
42 views

Strategies and practical advice for using saved compiled functions in a package

I want to use a compiled function in a package without having to rebuild it each time. This slows down unit testing and loading of the package. I have used the example in the link as my starting point:...
0 votes
0 answers
47 views

Previously loaded packages not working

I'm a complete beginner at Mathematica. I was trying to learn the basics over the last couple of days. Yesterday I downloaded the GREATER2 package from here. To start using this, I downloaded the .m ...
4 votes
1 answer
95 views

How to use a personal function in Matlab within Mathematica utilizing Matlink?

Problem description I've written a function in Matlab as follows: function z = testfuncadd(x,y) z = x + y; end I want to use this function within Mathematica ...
0 votes
0 answers
55 views

Is loading several packages in the same cell safe, or it may cause probems?

My Mathematica 13.3 crashed after working 30 minutes. It produced a beep and no output. After that, it lost the capability of loading packages. I will reinstall it now. I wonder if this happened to ...
5 votes
1 answer
122 views

Where should global variables be defined in a package?

I am trying to understand two of the answers to the question 114769 Package functions and symbolic calculations ...
1 vote
0 answers
39 views

Why my MATLink must execute the command `OpenMATLAB[]` twice to realize once normal `OpenMATLAB[]` command?

Problem description To use Matlab code in Mathematica I have tried to use the package MATLink. However, everytime I run the code below ...
1 vote
0 answers
51 views

Normal order package usage [closed]

I found a package that normal orders bosonic creation and annihilation operators for me. Here is the link to the package and explanation of normal ordering: https://en.wikipedia.org/wiki/Normal_order ...
1 vote
0 answers
38 views

Why a script stops working when moved from the beginning of a file into a package?

Here's a two command script defining L1, Der1 (which compute the first Lyapunov exponent of an ODE): ...
5 votes
1 answer
411 views

HypExp and HPL packages for hypergeometric functions: Evaluating a function HPL[{minus,plus},x]?

I am currently using the HypExp and HPL packages, which are useful for expanding hypergeometric functions in series around integer or half-integer values, as in common in dimensional regularization ...
1 vote
0 answers
185 views

Bifurcation and stability analyses of delay differential equations

Are there any packages in Mathematica for bifurcation and stability analyses of delay differential equations? For Matlab, there is a nice tool like: https://twr.cs.kuleuven.be/research/software/delay/...
4 votes
0 answers
65 views

Implications of Code vs Input Initialization Cells in Package Files

When editing package files, I've noticed that there are really two options for how to format the cells, which has major implications for how they appear in the Mathematica front end. One is to have ...
14 votes
1 answer
2k views

Installing packages on "Mathematica Online"

How can I install packages in Mathematica Online? In particular, how can I install the xAct package?
0 votes
1 answer
109 views

Is there a good package for solving the Einstein field equations given a metric tensor?

I have a very simple metric tensor. I've built a notebook to calculate the EFE solutions based on this metric. Does anyone know of a good package in the Mathematica library that takes a metric tensor ...
0 votes
0 answers
72 views

Save inline math in packages

I can enter inline math with Ctrl+( in text cells, but saving this .wl file does not save the formatting. This can be seen by examining the source. How can I save this formatting? ...
1 vote
0 answers
35 views

Derivatives in the SpinWeightedSpheroidalHarmonics package

Hello I'm using the SpinWeightedSpheroidalHarmonics package from the Black Hole Perturbation Toolkit . This package includes the SpinWeightedSphericalHarmonicY, ...
6 votes
1 answer
317 views

Browne & Park Grassman Algebra package?

This year's Wolfram Innovator awards honored David Park Jr. and mentioned work on a Grassman Algebra & calculus package. This led me to find the Grassman Algebra book by John Browne https://...
0 votes
0 answers
45 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
38 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
27 views

Insert LineLegend outside FigurePanel in SciDraw

I would like to put LineLegend outside of FigurePanel in Multipanel view created in package <...
4 votes
1 answer
548 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.
26 votes
7 answers
4k views

Making a website with Mathematica

I know many people here have various websites associated with them and I'm guessing do at least some of the development of that stuff in Mathematica. I recently fell down that rabbit hole myself, ...
1 vote
2 answers
136 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
1 answer
108 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?
47 votes
7 answers
1k views

Mathematica package manager

I want to bundle up a Mathematica package that I've written and distribute it as open source. It has a couple of dependencies that I'd like to automatically download independently from my package as ...
13 votes
2 answers
225 views

Install paclets into $BaseDirectory on multi-user system

PacletInstall will install paclets into the $UserBaseDirectory by default. How can we install them in ...
2 votes
1 answer
74 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 ...
1 vote
0 answers
135 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 ...
2 votes
2 answers
105 views

Avoid context mark in Plot labels in package

Minimal example: ...
5 votes
0 answers
66 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
51 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
68 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
91 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
34 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 ...
9 votes
1 answer
123 views

Dealing with over eager shadowing messages

...
0 votes
0 answers
41 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_{...
2 votes
0 answers
110 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
0 answers
61 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
55 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
2 3 4 5
18