Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [packages]

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

1
vote
1answer
15 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 ...
7
votes
1answer
81 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
122 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 ...
4
votes
1answer
112 views

Mathematica ExtraPackage

Where can I install the Wolfram ExtraPackages? Especially the Notation packages? I do not seem to have it by default ( In the Utilities, I have only two documents, called CleanSlate.m and URLTools.m?) ...
0
votes
1answer
50 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
158 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
38 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
70 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 ...
3
votes
0answers
46 views

How to connect to ncbi databases for text search? MathIOmica authoring instructions now do not work [closed]

Mias's suplementary material in the notebook MmaBioinfo_Ch4_Databases contains a code for search the snp related to autism ...
2
votes
1answer
46 views

How to make indepent linking workspace when using NETLink?

I've created two packages file as CompnentALink.m CompnentBLink.m the functions InstallNET[] and ...
0
votes
1answer
84 views

Main function in my package doesn't work

I am new to Mathematica package development and I have been trying to write and run some simple packages to get a feel for it. I wrote the following package. My aim is to define a package which has ...
3
votes
0answers
19 views

Not too obsolete package extending the built-in functionality of Permutation Groups

Is there a modern package geared to permutation groups? With functions, for instance, for group-isomorphism (either w.r.t. permutation representation & w.r.t. group structure), direct, semidirect ...
0
votes
1answer
55 views

Problem with AddOn-Package Theorema

First of all, I'm fairly new to Mathematica and the Wolfram Environment in general. If this question has already been asked I'm sorry for the duplicate, but I haven't been able to track down the issue ...
0
votes
0answers
35 views

How to call a .nb notebook inside a another notebook [duplicate]

I generally use .m as the file for mathematica. However currently I have started using .nb interface and its looking good. However if I create separate .nb files and try to call/import them inside my ...
7
votes
0answers
64 views

Exclude functions from auto-completion

Is there a way to exclude a function from auto-completion? Suppose that you are developing a package, and in the next version a function will be deprecated. It is better not to auto-complete it so ...
6
votes
1answer
58 views

Loading IGraphM on a Remote Cluster

I am trying to load IGraphM on a remote cluster at a university. I can load the program, then install the package, which is successful I then run <<IGraphM, ...
0
votes
1answer
77 views

Need a package to compute constraint structure

I want to compute constraint structure of some field theory and some gravitational field theory. By constraint structure I mean what is explained in the "Lectures on Quantum Mechanics" by P. A. M. ...
0
votes
0answers
72 views

Problem while installing a custom package (RGTC)

I am using "11.2.0 for Mac OS X x86 (64-bit) (September 11, 2017)" and I am trying to install the RGTC package, which can be found here. Download the package Then following the answer given by ...
3
votes
1answer
68 views

“Hyperlink” to notebook in the package folder

I wrote a package and when I import it I'd like it to print something like: "Bla bla bla. Click HERE for the example notebook." and the the list of functions defined in the package. I'd like HERE to ...
18
votes
1answer
318 views

What to be aware when using new-style package?

A new package format is described in this post. This format does not use BeginPackage and Begin. Instead, each package file is ...
5
votes
3answers
99 views

How to avoid running code when a script is imported as a package?

In Python, the boilerplate line if __name__ == "__main__": defines a code block that should be executed when the code is run as a script, but not when imported as a ...
5
votes
1answer
97 views

How do you set up private contexts shared between sub-packages?

I have a fairly large project that logically splits into several subunits, and for reasons of testing, documentation, and discoverability, I would like to make each subunit its own (sub-)package, like ...
2
votes
1answer
84 views

LieArt — 8 dimensional Irreducible representation of $\mathrm{SO}(8)$ and their decompositions - No.2

This is the followed up question of LieArt --- 3 different 8 dimensional Irreducible representation of SO(8) and their decompositions, Since $$ \mathrm{SO}(8) \supset \mathrm{SU}(2) \times \mathrm{...
1
vote
0answers
68 views

LieArt — 3 different 8 dimensional irreducible representation of $\mathrm{SO}(8)$ and their decompositions

I am using the LieArt which you can download freely online https://arxiv.org/pdf/1206.6379.pdf There are three different 8 dimensional $\mathrm{SO}(8)$ irreducible representations, formally it is ...
3
votes
2answers
122 views

The design implication of PD[X[ #, #, #, #], X[#, #, #, #]]

In Package KnotTheory, there's a function called PD[] that takes a tabulated knot and returns its PD codes, for example: ...
5
votes
1answer
74 views

How to enforce priority on custom directory over paclets default repository

As explained in $Path hijacked by PacletManager? loading packages from custom directories may not be so intuitive. Not to mention absolute lack of documentation of interaction between ...
4
votes
1answer
57 views

Print definition of functions of user created Mathematica Packages

To expedite the work I do I have created a Mathematica Package that has all the functions I need to plot the data I need to analyze. The problem is every now and then I will need to slightly modify ...
7
votes
1answer
67 views

Function defined in a package behaves differently from when defined in a notebook

On a Windows system I'm using the Rubi rule-based integration package by Albert Rich which defines function "Int" in addition to Mathematica's Integrate. In my ..\ProgramData\kernel\init.m I have: <...
5
votes
3answers
106 views

Power Function and Non Commutative Multiply

I'm trying to figure out the best way to define a Power function for non commutative multiply that retains some of the regular features of the ordinary power function. As of now, what I've been ...
3
votes
2answers
48 views

Using Symbolize to Convert Multiple Variables at Once

So, I have created a list of subscripted and overdotted variables that I would like to symbolize, so I run them through a for loop. Seems to me that this would work? Any help is appreciated. ...
3
votes
0answers
47 views

Sneg Library - Number operator simplify

I am trying to use the SNEG Library for evaluating some commutators. For instance I am trying to evaluate $$ \left[n_1^2,a^\dagger_1\right]$$ with the code in Mathematica ...
4
votes
0answers
50 views

Testing packages against old Mathematica versions

I've made a Mathematica package available, and it's been reported to me that it doesn't work with Mathematica 4. I've guessed at some of the issues, and provided work arounds, but that process is ...
3
votes
0answers
90 views

How to find, load and use a legacy Mathematica package

Question: How to find, load and use a legacy Mathematica package from a previous Mathematica version? What is the preferred approach and process? Context: I am working through a set of examples in ...
0
votes
1answer
35 views

Cannot set DownValues to ValueList while loading package

I have installed a package named HEP from Wolfram Library Archive which contains several .m files by Files -> Install (...
5
votes
1answer
70 views

Why does my Package not work when I use ParallelEvaluate?

I am developing a package in Mathematica for finding the conductivity of magnetic materials. The most important and time consuming processes are EigenSystem[] calls. I want to make the code modular so ...
2
votes
1answer
62 views

Using My own colorfunction in SMTShowMesh

When plotting the data using SMTShowMesh in AceFEM package I would like to use my own color function not the one that SMTShowMesh uses by default. For this to be achieved, I created my own color ...
2
votes
1answer
36 views

Which folder should I store the .m file in order to run it using MEvaluate[MScript[“scriptname”]]?

I have installed MATLink and it works fine. Which folder should I store the 'scriptname.m' file, in order to run it using MEvaluate[MScript["scriptname"]]?
1
vote
0answers
32 views

What is the correct setup when using multiple packages in a Workbench Application project?

With Workbench 3 I created an Application Project which resulted in the following directory/files tree. ...
10
votes
1answer
121 views

Attempts at backwards compatibility

I have written a package in Mathematica 11, and I would like to provide some backwards compatibility to earlier versions. An example is the function Echo. ...
15
votes
0answers
178 views

How to design re-usable sub-modules?

There was a recent question asking about how to design modular packages: Declaring Package with dependencies in multiples files? This is an important issue for which unfortunately there is no One ...
17
votes
2answers
313 views

When to name a variable with $

There are some symbols in the Wolfram Language that start with $, including $Abort, ...
25
votes
4answers
585 views

Declaring Package with dependencies in multiples files?

I am new to using Mathematica where I write most of my code in packages. So to get the hang of it I am trying to set up an example of what a project might actually look like. ...
7
votes
2answers
223 views

How to obtain list of Installed Packages loadable by Get (<<)

When Get["MyPackage`"] is executed, Mathematica looks for a package in $UserBaseDirectory/Applications, and it does, it will ...
11
votes
1answer
108 views

BugTracker in Mathematica paclet

I've been dealing with bugs in a very ad hoc fashion, mostly hitting them as they come or trying to write a note in my code to deal with them. As my codebase has broken the 50000 loc mark I find it's ...
8
votes
1answer
99 views

Fail to load a UTF8 package with one special Chinese character

Please check out the following code. BeginPackage["WTF`"] f::usage="blah" Begin["`Private`"] f[x_]:=1(*盘*); End[] EndPackage[] I've save the code to ...
4
votes
1answer
47 views

User Defined Color Scheme in a Package

I have a package that is destined to plot stuff. The plots can have as many functions as the user wants so the variety of the color in the plots has to be enough. Which is why I created a new color ...
1
vote
1answer
66 views

Initialize global variables in a package containing a compiled function

I have created a package that consists of a function which uses Compile. This function contains a parameter, say a, and I want ...
0
votes
1answer
74 views

Loading package RTGC

I am facing a problem in loading the package RTGC. I want to load the file EDCRTGC.m. But when I am giving the command EDCRTGCcode.m it shows the following error SetDelayed: Tag Classify in ...
4
votes
1answer
133 views

What could be the reason for for the residual error in post-iteration to high…?

Recently I started having this error in my simulations in AceFEM. For me it is quite strange because it happens in a particular step when the convergence has ...
11
votes
1answer
94 views

Precedence of cell group tokens over package's expressions

Bug introduced in V10.4 or earlier and persisting through V11.3 [CASE:4072996] ...