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
7
votes
2answers
104 views

How to provide latest paclet version

I've made a package available on github, which can be installed with ...
9
votes
1answer
111 views

Importing Packages to .wls without shadow definitions and context specification

I am trying to import a package that works correctly when I use it in a notebook in a wolframscript .wls. I get a weird shadowing problem, however. Here is a minimal working example ...
4
votes
0answers
78 views

How to correctly update packages?

Newbie starting to work with packages. I can create and load a package. However, when I come to update my package, I find the procedure very laborious. This is what I'm currently doing; Update ...
1
vote
0answers
96 views

MMA packages for A=B

The book $A=B$, available here, contains in Appendix A pointers to three Mathematica packages (Gosper, Hyper, WZ) that accompany the book. The links to the book web pages are stale. Can anyone give me ...
2
votes
0answers
40 views

Does passing patterns between packages alter their name unbeknownst to the user? [duplicate]

This question is a partial followup to my previous question. Mainly, after using With to inject the proper argument in the function at the rhs of ...
5
votes
1answer
333 views

Calculating e.g. Euler density or Riemann tensor's square for a given metric using xAct package

I have started to learn about the xAct package to do some general relativistic calculations and whereas there might be other codes available, I would like to get my answer in terms of this package's ...
3
votes
1answer
66 views

<<Wavelets`Wavelets Not Found [closed]

please i'm a student and i need help in my project which is based on an already existing program. The problem that the program is ancient( Mathematica 5.0) and doesn't fit with the new versions of ...
1
vote
1answer
62 views

After creating a package, how do I install it? [duplicate]

I have created the following package. ...
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 ...
1
vote
1answer
88 views

Formatting in *.m file

I have my own package (just a bunch of functions) in the *.m file, which I load using the Needs[] command. Everything works fine ...
0
votes
0answers
34 views

Indentation is lost in Mathematica packages [duplicate]

This might be very trivial to fix (in that case I'll just delete the question), but why when I save a Mathematica notebook as package, the indentation is completely lost and when I edit the package ...
5
votes
2answers
304 views

How to follow symbolic links on disk?

In this question we learn that we can use FindFile to get the disk location of a package. However, I have some packages that are installed into my ...
11
votes
1answer
191 views

Putting package documentation on Wolfram Cloud

So, I've finally released v1.0 of my EcoEvo package. Yay. Maybe I'll give an overview here soon. I'd also like to advertise to my colleagues, perhaps non-Mathematica users, who might use it. The ...
0
votes
0answers
18 views

Hamiltonian Analysis in xAct: Variation wrt time derivative of fields

I'd like to use the xAct package to perform the Hamiltonian analysis of a complicated action. To that end, it would be useful to introduce a chart and split indices into "temporal" and "spatial" parts....
10
votes
2answers
524 views

Using Terminal` (ASCII plots) in Wolfram 12

I was interested in exploiting the Terminal` package, as demonstrated in this post, to show some ASCII plots straight through the terminal of my Raspberry Pi Model 3 B+. However, it doesn't seem that ...
10
votes
2answers
506 views

Automatic AutoIndent while editing a Package (.wl)

The author of this question is interested in personally handling the code indentation and having the package editor, built-in in Mathematica 2012, preserve the manually chosen indentation level from ...
0
votes
0answers
53 views

Is it possible to create complicated packages from modules which work fine by copy paste? — A counterexample [duplicate]

Here is a module which constructs essentially several functions in a chain [Phi], sct, ks, WE, G: ...
1
vote
0answers
102 views

Transferring a function between two modules in a package

I have a first module which outputs as forth output a function G I want to transfer to another module. The specific function is ...
0
votes
0answers
45 views

Solving differential forms equations

I have this couple of equations in differential forms language: $ \Delta z^i \star {\bf{1}}+ G^{i\bar{p}} (\partial_j G_{k\bar{p}} ) dz^j \wedge \star dz^k + G^{i\bar{j}} (\partial_{\bar{j}} G_{k\bar{...
7
votes
0answers
66 views

How to distribute styles with packages?

I want to define some named styles with StyleData and StyleDefinitions that are either entirely new or inherit from default ...
1
vote
1answer
89 views

Problem with “MediaTools`” in Mathematica 12

I asked here for a solution how single video images can be extracted very fast from avi files. Piotr Wendykier gave a solution for Mathematica 11.3. Now I'm using Mathematica 12 and his solution ...
90
votes
4answers
7k views

What are the recommended settings for git when using with Mathematica projects?

Background I'm relatively new to git — currently overseeing an offshore .NET-based development project on GitHub within a private business account, but little experience beyond that. I'd like to set ...
15
votes
1answer
706 views

Mathematica Syntax Coloring in GitHub README

GitHub doesn't auto-detect and color Mathematica code in its markdown. Can we make it do so? This may be trivial, but many README files don't seem to have it.
24
votes
1answer
433 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 ...
0
votes
0answers
24 views

Factor[p(x), a, b] not working in Galois theory package

I have downloaded Galois theory package from http://library.wolfram.com/infocenter/Articles/2872/ and I currently have Mathematica v 12.0. When I loaded the module (I needed to delete the blue stuff ...
0
votes
0answers
53 views

How to apply the utility Packages for Numerical Differential Equation Solving

I have solved two coupled equations with {Solf, Solg} = NDSolveValue[eqns, {f, g}, {x, 0, L}, {t, 0, tmax}] and want to extract the computational grid ...
2
votes
0answers
52 views

Updating an old package

So I was trying to use this package billiard but some functions it uses are outdated so I was trying to update it (I tried to use the update button but didn't work). I basically did copy-paste and ...
2
votes
1answer
152 views

I am unable to install a package on V11.3, which previously worked on V6.0

It is BUtools (both old and new version) http://webspn.hit.bme.hu/~telek/tools/butools/ I moved the files from Downloads to AddOns inserted the path using insert file ...
15
votes
2answers
917 views

Does anyone have experience with performing symbolic regression using Mathematica?

I understand that there is at least one Mathematica package, DataModeler commercially available for symbolic regression. I'm seeking any observations with this or any other similar tool. I'm ...
3
votes
1answer
220 views

Distinguish FeynRules, FeynCalc, FeynArts, FormCalc and LoopTools

I am totally confused: I can't distinguish the packages FeynRules, FeynCalc, FeynArts, FormCalc, LoopTools properly. Once I installed FeynRules I think. It seems to include the packages FeynCalc and ...
9
votes
2answers
216 views

How to hide functions in a sub package from user level?

The only packages I did before were simple one file packages. I am now learning how to make a package that has a sub package. The main package calls functions in the subpackage. But user is not ...
0
votes
1answer
82 views

Passing arguments into WolframScript in batch mode

I am looking for a way to passing arguments into a WL script when WL run in batch modes. The test script is: ...
1
vote
2answers
87 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 ...
5
votes
3answers
537 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 '...
12
votes
3answers
697 views

Is there a package for Bayesian Linear Regression?

Is there a Mathematica package for Bayesian linear regression? Thanks
0
votes
0answers
34 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 ...
21
votes
5answers
2k 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, ...
7
votes
1answer
350 views

Geometry computations add-on for Mathematica?

I came across the problem of calculating the circumcenters of triangles symbolically within another algorithm (as well as possibly doing other similar geometry computations). I was hoping Mathematica ...
15
votes
1answer
2k views

Where to download the MathWorld package?

I was trying to run some notebook I downloaded from MathWorld, but lots of them need << MathWorld`Curves` I tried to google it , only to find this, but ...
6
votes
2answers
269 views

Package MathWorld

I'm looking for MathWorld packages, but I can not find anywhere. I found an question that came very close but did not help me. I got lost on the site and did not find anything. I need to use the ...
5
votes
2answers
297 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: ...
38
votes
3answers
3k views

Computational Bayesian analysis in Mathematica: Any plans to develop MCMC?

Does anyone know if there are any plans to develop an MCMC capability in Mathematica? My reasoning for asking is that as it stands, I can't seem to find any 'out-of-the-box' functions/capabilities ...
2
votes
1answer
47 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
27 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 ...
1
vote
0answers
103 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 ...
7
votes
1answer
106 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
223 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
34 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
88 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
56 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 ...