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
3 votes
1 answer
97 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
21 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 ...
1 vote
2 answers
407 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 ...
0 votes
0 answers
49 views

Who can share me the Signals and Systems Package? [closed]

Dear friend in this community, Recently, I'm studying Pro. Lutovac's "Filter design for signal processing". Direct running his MMA codes in the book needs an obsolete third-party package SSP(...
0 votes
1 answer
57 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
40 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 ...
7 votes
1 answer
10k views

How to load a custom mathematica package from a .m file?

I would like to load the package groebner50.m which is available through the website of David A. Cox. It's supposed to contain some useful tools for commutative algebra, but I haven't been able to get ...
5 votes
0 answers
506 views

FuzzyLogic in Mathematica

Just a question for my information. What package do I need to load or to buy to be able to use fuzzy logic in Mathematica? I tried << FuzzyLogic but ...
10 votes
4 answers
1k views

Simplifying the trace of a matrix expression

I have a long expression involving matrices that I derived using the NCAlgebra package. Can I simplify the trace of the expression? For example, say b is a scalar (...
0 votes
1 answer
50 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 ...
3 votes
0 answers
127 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
39 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: ...
45 votes
6 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 ...
7 votes
1 answer
684 views

Chess in Mathematica

Is there a Mathematica chess package? I'm trying to generate GIFs from chess PGNs. Additionally, I like to try some chess algorithms against a chess engine and watch the game and run statistical ...
11 votes
2 answers
527 views

What is contained in a GeneralUtilities package?

In Programmatic formatting for Mathematica code - possible? masterxilo proposed to use <<GeneralUtilities` then ...
1 vote
2 answers
45 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
72 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
72 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
68 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
144 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, ...
1 vote
1 answer
59 views

Nesting One Package in Another (Cournot Duopoly with neural network package)

I am writing a 2-firm (Cournot Duopoly) game, where both players learn to optimise their long-term rewards by a neural network (the input is the price the firm sets, the output is the estimated reward)...
4 votes
1 answer
279 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
1 answer
465 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".
0 votes
0 answers
30 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
72 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
1 answer
107 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
58 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?
5 votes
1 answer
752 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 ...
1 vote
1 answer
105 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 ...
3 votes
2 answers
162 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
143 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
46 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
73 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....
0 votes
0 answers
35 views

Notation package problem [duplicate]

I am using Mathematica 12.3.1 on Windows 10. I am trying to load the Notation package: Needs["Notation`"] and I get the following: It seems the package ...
18 votes
4 answers
2k views

Strategies for avoiding and handling shadowing

When dealing with namespaces in Mathematica (BeginPackage, $ContextPath ...) one is unavoidably confronted with the problem of ...
0 votes
0 answers
43 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
113 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
83 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
65 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 ...
2 votes
0 answers
38 views

Problems with ImageResize using Mathematica Online (different results than Mathematica desktop .nb)

I originally created a package (.m file) which handled figure formatting. This package was read into my desktop notebook file. In the code block below, I use ImageResize[image,width] to resize an ...
4 votes
1 answer
132 views

IGraphM - Correct use of IGPersonalizedPageRank?

I'm using Szabolcs' IGraphM to calculate the personalized Page rank for each node in a graph. I was wondering about the 'reset' parameter, what exactly is it? As I understand, the personalized Page ...
1 vote
1 answer
177 views

Can't load Classes package [closed]

This is a followup question to packages will not load. I can get SamplePackage to load by doing <<SamplePackage.m or <<SamplePackage' but I cannot get TMPClasses.m package to load, which I ...
10 votes
1 answer
149 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'...
4 votes
2 answers
187 views

Does the ccgrg package still work on mathematica 12?

I have a number of notebooks written for whatever the current version was of Mathematica in 2019 (not 1919 as I had earlier) and using the ccgrg package for general ...
8 votes
2 answers
256 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 ...
1 vote
1 answer
387 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 ...
0 votes
0 answers
542 views

Using the `TwoAxisListPlot` Package and `Show` Together

I am using the TwoAxisListPlot package to generate a plot with two y-axes (obviously!). I have made a NonlinearModelFit to one ...
1 vote
0 answers
62 views

Pattern matching and polluting the namespace

I am building a library. Inside of BeginPackage environment there is a function ...
1 vote
1 answer
74 views

Private`x from a package function used outside

I'm fairly new to the Wolfram Language and I'm having a problem with how packages work. I have some function that are inside a package, the goal of those function is to create random polynomial ...
2 votes
1 answer
83 views

Tensorial Package Installation

I tried to install the Tensorial5 package according to its developers' instructions, however, I was unable to call the package using Needs. Does anyone have any ...

1
2 3 4 5
17