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
5
votes
1answer
78 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
70 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
47 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
39 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
134 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. ...
16
votes
0answers
202 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
337 views

When to name a variable with $

There are some symbols in the Wolfram Language that start with $, including $Abort, ...
30
votes
4answers
1k 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
375 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
114 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
137 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
91 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
87 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
82 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
147 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
97 views

Precedence of cell group tokens over package's expressions

Bug introduced in V10.4 or earlier and persisting through V11.3 [CASE:4072996] ...
3
votes
1answer
136 views

Weird behavior of two Prime symbols in package

I discovered some very strange behavior, which leads to strange errors. Hope you can explain it for me. It might be a bug. So, i created a package, where i prepare set of equations to use in NDSolve. ...
0
votes
0answers
72 views

Problem with the Needs function on Mathematica 11.1

I wrote code on Mathematica 11.1 where I need to use the function Needs to partitions of integers and Young tableaus, but when I run the following lines: ...
3
votes
0answers
102 views

Load a package temporarily

I want to use one function from a built in package (specifically CCompilers[] from "CCompilerDriver"`). It seems unnecessary to ...
0
votes
0answers
19 views

Loading packages without exiting the kernel [duplicate]

I find that I always need to exit the kernel in order to load the changes within a package successfully: ...
6
votes
0answers
219 views

Multipart package creation, development and maintenance [closed]

I am a physics major. I focus on theoretical and mathematical physics. After spending some time with Mathematica I found that it is not straightforward to create separate files for logically distinct ...
11
votes
1answer
331 views

Package for fast spherical harmonic transform in Mathematica?

Mathematica's implementation of the Fast Fourier Transform is, naturally, much faster than computing the discrete transform yourself using Sum. The analog of the ...
2
votes
1answer
108 views

Abort long evaluation and show intermediate results

I am doing a time-intensive calculation and I would like to have the option to stop the calculation but obtain the current (last) result. Generally, I do some groundwork as what can be done before ...
4
votes
1answer
144 views

Documentation for undocumented packages

Ignoring the self-contradiction in the title, is there documentation for packages such as Algebra, which probably contains lots of useful functions? (The only one ...
1
vote
0answers
30 views

infinitesimal generators from infinitesimals [Xi]^1 , [Xi]^2 , [Phi]^1 using YaLie 2nd prolongation method [closed]

How does one determine infinitesimal generators from infinitesimals [Xi]^1 , [Xi]^2 , [Phi]^1 using YaLie 2nd-prolongation method for a Diffusion PDE? Is there another YaLie package to use? Up to date ...
5
votes
1answer
144 views

Current QuantLib implementation for Mac OS

Does anyone know of a current QuantLib implementation that can run on Mathematica version 10.3.0 (or higher) for Mac OS X x86 (64-bit)? About QuantLib: The QuantLib project is aimed at providing ...
3
votes
0answers
371 views

Presentation of SNEG creation and annihilation operators in Mathematica 11

I am using the Mathematica package SNEG to make some calculations in solid state physics (see http://nrgljubljana.ijs.si/sneg/). The programs in SNEG library are running, but their presentation are ...
11
votes
1answer
193 views

Package documentation separately from code

Mathematica documentation is heavy duty stuff. Of the 7.75GB my Mac says Mathematica 11.3 takes up, 5.46 of that is documentation. So when I write my own packages I don't want to do what WRI did and ...
2
votes
0answers
155 views

Where to find LieSymm-PDE Package for Mathematica?

I am unable to find the LieSymm-PDE package for Mathematica developed by Vladimir Pulov et al as outlined on the website: http://www.swmath.org/software/12188 as well as explained in the paper: https:/...
8
votes
1answer
212 views

A tour of AWSLink?

Seems like there are a lot of useful functions in this undocumented package AWSLink: Any developers on here that can demo it a bit?
1
vote
2answers
249 views

FeynArts package fails to load

This is definitely a duplicate of FeynArts not working properly. However, that post dates back 5 years. I am currently on Mathematica 11.0.1.0 with Windows 10 as my OS. I have been trying to load the ...
1
vote
2answers
200 views

Levi-Civita tensor for ccgrg Mathematica package

I'm just learning to use the ccgrg package for computing Riemann curvatures etc in Mathematica. The package has most of the useful geometric tensors as built-in functions, but I can't find a function ...
3
votes
1answer
119 views

Why doesn't my package load and execute? [duplicate]

This might be a stupid question but I simply don't get my head around this. I'm trying to define variables and functions in different files (tried everything: nb, m, ...) and include them for use in a ...
7
votes
1answer
92 views

Strategies for creating links to external systems

Often I find myself creating links to external systems, be it a converter from Mathematica to python, a link to Git/GitHub or to an electronic structure package. And I am far from the only one. I've ...
2
votes
1answer
88 views

Converting strings to expressions in a package

I have a function that generates an equation in the form of a String. I want to be able to turn that string into an Expression, and evaluate it in another function. For example: ...
-1
votes
1answer
405 views

How to calculate the Energy momentum ($T_{\mu \nu}$), Electromagnetic field ($E_{\mu \nu}$) and Electromagnetic tensor ($F_{\mu \nu}$) [closed]

Given a RN-metric, how to calculate the Energy momentum ($T_{\mu \nu}$) , Electromagnetic field ($E_{\mu \nu}$) and Electromagnetic tensor ($F_{\mu \nu}$)? What is the appropriate GR tensor package to ...
0
votes
1answer
59 views

Distinct packages with identical function and variable names

Trying to simulate namespaces, I have created two packages with nearly identical function and variable names, essentially, something like this: ...
0
votes
0answers
183 views

What are the valid symbol names for packages?

Regarding to the message: ...
3
votes
1answer
106 views

Get[…, Path-> {…}] does not shield against paclets directories

Let's create a test package/paclet in a standard $UserBaseDirectory/Applications: ...
2
votes
1answer
123 views

Am I mis-using `Needs`?

I am a bit confused with a notebook I am using to test a package that contains some useful functions. Both the notebook and the package are in the early stages of development; I move them around a ...
1
vote
0answers
41 views

Why doesn't my package load automatically when placed in \$UserBaseDirectory\Autoload? [duplicate]

I'm using Mathematica 10.4 on Windows 10. I created a package which loads when I run Needs["sub`package`"] That works whether the package is placed relative to ...
2
votes
1answer
84 views

Returning a list of replacement rules from a package function

I am having a go at writing my first package and would like to do something similar to the following. Its a basically a very thin wrapper around NonlinearModelFit. ...
6
votes
2answers
155 views

How to organise functions inside a package instead of the initialisation of a DynamicModule?

I want to know how to write clean code of a big DynamicModul for a complex GUI which should be deployed as a CDF. I want to split the dynamic module into several smaller DynamicModuls and Functions. ...
11
votes
1answer
183 views

How can I automatically generate all the front-end settings for a function?

I mostly write my packages within the Mathematica FE, but when I develop I never really think all the usage messages, autocompletes, syntax info, and argx patterns that a well developed function would ...
4
votes
1answer
107 views

gitlink won't commit changes?

I load the GitLink package. Needs["GitLink`"] create a repository ...
3
votes
1answer
101 views

need simple example of setting up gitlink

<< GitLink` produces the following error InitializeGitLibrary::libnotfound: -- Message text not found -- then ...
2
votes
1answer
851 views

CMD method to convert .nb file into .m file

.nb file consists of the boxes, and the .m file is a pure text file, what can help to share on GitHub. Of course, we can open a <...
5
votes
1answer
171 views

Are integrals with coalescing saddles available in the core Mathematica or in standard packages?

I was having a look at the DLMF chapter on integrals with coalescing saddles, and there are a few things that I'd like to try out with the functions it describes, including e.g. the Pearcey integral, $...
0
votes
0answers
105 views

Problem with Gamma Package

I wanted to install the Gamma package. The package seems to have installed correctly. However, I am not seeing any symbolic output. The outputs should be like these. But I am getting these. Any idea ...
5
votes
0answers
286 views

Code behind these Video Playback demos?

There are only two known examples of video playback (from a file) within a (non-cloud) notebook: Visualizations in Graph Theory with the Wolfram Language (at time 3:32) Mathematica and CUDA, SIGGRAPH ...