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
0answers
31 views

How to build a package which can be operated like the ParticleData Function?

How to build a package which can be operated like the ParticleData Function ? ParticleData[name,"property"]
1
vote
2answers
71 views

Export a Package (.m) from a Notebook (.nb) [duplicate]

I recently started creating Mathematica packages. I find it easiest to develop functions in a Notebook (.nb file). This allows me to add sections, comments and examples. I don't want to duplicate ...
6
votes
3answers
409 views

How to unload a Mathematica package?

I am using a publicly available Mathematica package on this page and is loaded in Mathematica by the command << EccentricIMR`; How do I unload this package? I don't want to use 'Quit' or '...
0
votes
0answers
22 views

Passing arguments into package from a command line

I am interested in running the same experiment with the different initial state. So, I am looking for a way to passing arguments into a plain text .m file from the ...
1
vote
0answers
25 views

Kernel runs continously with Manipulate Block inside Package, not notebook

I recently moved an Manipulate block from a notebook to a package (.m file). The original manipulate called functions from the package in the form of Package`f(x) and was used in the Manipulate. The ...
2
votes
1answer
43 views

Package installation: this user vs all users

In developing and debugging a package today, I ran into a problem where installing the package through the menu seemed to stop working; changes I made simply weren’t being updated. As a matter of ...
1
vote
0answers
88 views

How can you write musical notation in Mathematica?

I am trying to write a project that overlaps particle physics and music, and have written all the basis in Mathematica, but to display it I need to write some lines of music out. I deally I would like ...
4
votes
2answers
242 views

Find multiple solutions of a nonlinear ODE

I have a nonlinear ordinary differential equation with two parameters c and R in the form of: ...
7
votes
1answer
101 views

How to (optionally) suppress package welcome message?

I'm working on a package and I want it to (usually) print a welcome message when it's loaded, primarily to leave a written trace of the version number in the notebook where it's used. For example: <...
0
votes
1answer
72 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 ...
1
vote
0answers
32 views

Performance issues with Packages within Packages

I am currently working on parallelizing a piece of code, as indicated in here, which explains the following, rather convoluted, way of evaluating a function; so please bare with me. But irrespective ...
2
votes
1answer
71 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 ...
3
votes
0answers
49 views

Lie-algebra valued non-abelian differential forms in Mathematica

I am trying to implement wedge product of Lie-algebra valued differential forms in the non-abelian case. Concretely, I am intereste in 1- and 2-forms, that is, $A$ and $F$. Is there a way of doing ...
2
votes
0answers
53 views

Mathematica implementations of classical genetic algorithm optimization

Are there any Mathematica implementations of genetic algorithm optimization routines, including third-party and commercial? (DifferentialEvolution isn't quite what ...
2
votes
1answer
57 views

What is CURLLink and where can I go to find more information about it?

All that I know about CURLLink is that it is a package, I believe. I need to find out more about CURLLinkUtilities but I'm not really sure where to start, and all ...
1
vote
0answers
36 views

How does PacletInstall work? And is it possible to find packages using PacletInstall?

It seems that many packages published could be installed using PacletInstall . For example, from this Rubi install instruction webpage, we could see the comman: ...
2
votes
0answers
28 views

Failed to use a R package via Rlink on Windows

I need to import .ibw (Igor files.) into Mathematica. For this I used 1) to go in R via Rlink (OS windows), 2) to load the package IgorR 3) to install it and then to use it. Here is a script which ...
0
votes
2answers
33 views

Downloading a package on a directory accessible to Mathematica

I am trying to download the Ricci.m file from this page. The instructions say You'll need to download the source file Ricci.m and save it in a directory accessible to Mathematica...Once you've ...
0
votes
1answer
35 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: ...
2
votes
0answers
51 views

Best Practice to Manage Utility Functions

It is often the case sometimes we write some functions that turns out to be handy and we would like to reuse them later. My current solution is to keep them in a single notebook and copy them to every ...
2
votes
1answer
53 views

How do I make a dynamic nested menu with the MorUI package?

I hope you can help me. I want to make a nested dynamic menu and I used the package MoreUI made by Kuba as a reference Question. My problem is that I want to add tasks such as: ...
0
votes
1answer
85 views

Why do I have to run the package to make the function available?

I made the following package file : ...
1
vote
1answer
42 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 ...
3
votes
1answer
72 views

Upgrade of package from 5.x to 11

I'm new to mathematica and I'm trying to upgrade TamarA package, because it shows wierd things. To be more precise in case of formulas which should result into fraction of some elements the resulting ...
1
vote
1answer
68 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 ...
3
votes
1answer
273 views

3D rigid body physics engine

Is there a package in Mathematica that will allow me to simulate collisions of 3d rigid bodies? If not, what known libraries could I use and how? For example, one problem I want to simulate is a ...
10
votes
4answers
535 views

What is the accessibility of a package's `Private` context variables?

I've been reading up on how Mathematica handles contexts, $Context, $ContextPath, and a few of the tutorials they have on ...
7
votes
1answer
120 views

GitLink: Retrieve list of files which were changed in a commit

How can I retrieve the list of files that were changed in a commit using GitLink? I can open a repo like this: repo = GitOpen["~/Repos/GitLink"] Now I can get ...
4
votes
1answer
151 views

TuGames package does not run

I downloaded the package TuGames from http://library.wolfram.com/infocenter/MathSource/5709/ to calculate Shapley Values in cooperative bargaining games. I got it to work earlier today but after ...
5
votes
1answer
62 views

How to reset a built-in symbol to its default definition?

I'm trying to add functionality to some of Mathematica's built-in functions in a package I'm building. I'm not trying to overwrite any functionality—just add it where it isn't already defined. I ...
3
votes
1answer
82 views

Running file with some extension [closed]

I want to run the Mathematica file with some extension, like '.m'. But, I don't know, how can I run the code. Please, guide me.
3
votes
1answer
63 views

How to install MaTeX on Mathematica online?

Can you please tell me the step-by-step procedure to install MaTeX on Mathematica Online platform?
8
votes
1answer
133 views

How to export functions from a package without declaring them at the beginning of the package?

When making a package, I find it a bit difficult to remember to add functions as public, and update the ::usage tag. Is there some neat trick to automatically ...
2
votes
1answer
123 views

Meson build system + C/C++ LibraryLink, help needed for portability check/fix (Windows &MacOs)

As a proof of concept I have created a github repository that shows how to: use the Meson build system to create a Mathematica package using LibraryLink functions The goal is to provide an easy to ...
1
vote
0answers
47 views

Change the posets300.m package since CProduct does not work

I want to build a Cartesian product of two posets (say chain[2] and chain[2]). I wrote ...
8
votes
0answers
46 views

Dealing with over eager shadowing messages

...
8
votes
1answer
155 views

Maeder's articles about Logic Programming with Mathematica

I found by chance Maeder's public articles about Logic Programming with Mathematica at the following links: Logic Programming I: The Interpreter and Logic Programming II: Applications . The first ...
4
votes
1answer
42 views

How to set the value of a symbol in a package [duplicate]

I am writing a package like this: BeginPackage["HNotation2`"]; Begin["`Private`"]; HTransR=3; End[]; EndPackage[]; When I load the package, it seems that the ...
3
votes
2answers
71 views

Overlaying custom plotmarkers onto graphics primitives using Show

I have found the custom plotmarkers package developed by @Alexey Popkov extremely handy for makeing nice, accurate plots. However, I have run into a small issue that I am struggling to make sense of. ...
0
votes
0answers
65 views

How to load a package [duplicate]

I have a package: BeginPackage["HNotation`"]; soma::usage = "asdfa"; Begin["`Private`"]; soma[x_] := x + 1; End[]; EndPackage[]; I save the file with ".m" ...
6
votes
1answer
187 views

Symbol appears in multiple contexts when loading package

I'm building a Mathematica application "APPStestI" that contains three packages: SUBappsA.m, SUBappsB.m, SUBappsC.m and APPStestI.m. Where APPStestI.m is the main package; SUBappsA.m and SUBappsB.m ...
2
votes
0answers
65 views

Antiparticles in Feynrules Lagrangian

I am trying to implement a simple extension of the SM to Feynrules, generating the Lagrangian in a Mathematica notebook file. I am wondering about the following: Is there a way to explicitly use the ...
4
votes
1answer
54 views

Mathematica package to calculate the graph crossing number

I have been searching for a mathematica package that can calculate the graph Crossing number of a (small) given arbitrary graph (the graphdata of known graphs doesn't help me). Before I write my own ...
8
votes
1answer
103 views

Memoization and packages

I am working in a package on symmetric functions, that sometimes are quite expensive to compute. I use memoization extensively, but what is the correct approach for a package intended for the public ...
3
votes
2answers
131 views

How to make an option immutable

I am writing a package featuring several functions which depend on a large number of parameters. I'm trying to use Options so that I can define default values for ...
6
votes
2answers
197 views

Mathematica ExtraPackage

Where can I install the Wolfram ExtraPackages? Especially the "Notation`" package? I do not seem to have it by default (In the Utilities, I have only two documents, ...
0
votes
1answer
54 views

How to enable loading packages dynamicly in Palette UI [duplicate]

Given a directory path and some .m files in it, I want load these packages files mannually outside notebooks, so I created Palette using code: ...
11
votes
1answer
185 views

Profiling a package

I have some code that I want to profile to see how much time each step takes, for instance: ...
2
votes
0answers
55 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 ...
2
votes
1answer
75 views

Loading MultivariateStatistics` changes colour of some multivariate distributions to red in notebook. Should I be worried?

I need to use the pdf of a Wishart distribution which is only defined in the package MultivariateStatistics`. However, after loading the package, some or all of the ...