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

learn more… | top users | synonyms (1)

1
vote
2answers
53 views

Partial reload of definitions from package

In order to keep my code modular, I have defined some functions in "Foo.wl" file, which I source with Needs["Foo`"]. When I modify a single function in Foo, I quit ...
0
votes
0answers
22 views

How to implement time dependence in the DoFun package?

DoFun is a very usefull mathematica package that helps to write Dyson-Schwinger and FRG flow equations when these are to complex to write down by hand. You can download it here and read it's manual ...
4
votes
0answers
41 views

Wrong autogenerated package from notebook containing #key and Part as subscript

Bug introduced in 10.0.0 and persisting through 10.1.0 or later Mathematica v10.1.0, under Windows 8.1 x64 Mathematica v10.0.2, under Windows 1) Define a function in an initialization cell: ...
7
votes
1answer
146 views

MaTeX for Mathematica 9

There's a great package called MaTeX that @Szabolcs wrote which allows one to easily use LaTeX within Mathematica for things like axes labels. After hours trying out various other solutions I ...
0
votes
0answers
26 views

What is the right way to combine a Package, Module, ParallelTable and NIntegrate?

I am stuck with a curious problem. I would like to to have a package from which i can call a function test[path], which then performs a time consuming numerical ...
11
votes
1answer
144 views

How to get the directory of a package?

I have a package that I have placed in the $BaseDirectory\Applications directory so that Needs can find it. I have a logo in ...
5
votes
2answers
137 views

Package Loading: How to get rid of Needs::nocont?

I am trying to create a documentated application inside FileNameJoin[{$UserBaseDirectory, "Applications"}] I obviously dont fully understand the concept of the ...
0
votes
0answers
20 views

Automatic AutoIndent while editing a Package (.wl)

The author of this question is interested to personally handle the code indentation and have the package editor, built-in in Mathematica 2012, preserve the manually chosen indentation level from line ...
4
votes
0answers
63 views

Variable not assigned to correct Context [duplicate]

I am trying to understand Mathematica's Context, but I do not understand why the short name of the variable defined in the temp` context (x) returns the Global definition. I am following the section ...
0
votes
0answers
54 views

Atlas 2 For Mathematica. Need to calculate Riemann tensor, etc [duplicate]

Is anyone familiar with Atlas 2 for Mathematica to calculate the Riemann Tensor, Ricci Tensor, and scalar I have a metric that I need to calculate these things for. Can anyone help? I'm not too up on ...
0
votes
0answers
78 views

Using Quantum Mathematica package with V10

I am using Quantum Mathematica add on/package for my calculations. It works well with Mathematica 9 and below. But when i run it on Mathematica 10 it gives problem/error. When I run the initial ...
1
vote
0answers
34 views

Package Function Confusion

I am a freshman working with Mathematica. I have written a package with a function like this: ...
1
vote
0answers
42 views

Mathpsfrag: failed setup at MathPSfragConfigurationTest (UnPSfrag) line (Windows 8)

I'm trying to follow the documentation on how to get mathpsfrag set up on Windows 8 (64-bit). It failed at the line ...
1
vote
1answer
58 views

Load a package and use it's functionality inside C#

I am trying to make a windows C# form which uses some functions that I wrote inside Mathematica. Suppose that we have the following package: ...
3
votes
1answer
74 views

Using packages with symbols that have the same name

Let us suppose we have two packages: A and B. ...
6
votes
2answers
247 views

How do I correctly embed VerificationTests in my packages?

I like to write my tests before I code and write them inline when developing a package, and when loading a package those VerificationTests should run and the load should fail and print a report if ...
5
votes
2answers
62 views

SetSystemOptions in a package

I'm looking to update a large package (with subpackage files called in the same context) to be compatible with version 10. A lot of the functionality surrounds plotting, particularly some custom ...
1
vote
1answer
55 views

Simplifying a product with indices by implementing a rule

I want to simplify a product of two operators including indices. Let's say my operators are $$ \mathcal{O}^{\mu \nu, \alpha \beta} = -p^2 \left( \eta^{\mu \alpha}\eta^{\nu \beta} + \eta^{\mu \beta} ...
4
votes
2answers
63 views

Annotation specifier like :Author: and sectioning like ::Section:: in package code

In packages, there is a special way to make basic formatting and annotation within normal comments. Here is another question related to annotation. Package file headers usually contain information ...
9
votes
2answers
142 views

Inconsistent behavior of undocumented Encode->Import->StringToStream->Get on password-locked stream

Let's save a definition. Encode it with password/key and Get it again. We will not use Get ...
1
vote
0answers
51 views

Mysterious message posted when I move the cursor in a custom function

I wrote a function called CPlot for complex plotting which is supposed to act a lot like Plot in its input format, but ever ...
5
votes
1answer
157 views

How to use Get on a folder

In the documentation for Get it says: If the file found by <<name is a directory, the Wolfram Language will try to ...
1
vote
0answers
53 views

Autoloading attempting to follow Roman Maeder's master package instructions

I am trying to use the Master Packages discussion from "Programming in Mathematica" by Roman Maeder. I have a directory: D:\at_work\mathematica\JacksPackages ...
1
vote
1answer
43 views

Using underscore in directory names and loading packages

Using an underscore with the SetDirectory command works fine. SetDirectory["D:\\at_work\\mathematica\\programming_maeder"] Now I can load a package using ...
3
votes
1answer
66 views

Package and imbricated compiled functions

I would like to build up a Mathematica package Pck which contains compiled functions. However when loading this library I obtain an error. When reduced to a minimal ...
4
votes
2answers
106 views

Can I view a package as a regular notebook?

How can I open a package as a normal notebook, i.e. without the toolbars and formatting of the built-in .m file interface.
3
votes
0answers
91 views

Mathematica GUIKit

Does anyone of you know if the GUIKit package is still under some development by Wolfram Research or is the current version 1.1.0 the last one. Does it make sense to make GUIs using this package in ...
1
vote
0answers
48 views

Where can I find documentation for the File->New->Package window?

I'm using 10.0.0 on OS X. When I go File->New->Package a window similar to a notebook appears, but with different coloration and a row of buttons on the top like 'Update' and 'Run Package'. I'm not ...
2
votes
1answer
58 views

How can I prevent a package from loading into a notebook run from Workbench?

I have a Workbench project in which I have created two packages: PackageA.m and PackageB.m. In the same project, there is a ...
6
votes
1answer
104 views

Loading Packages with Parameters

I have some packages that uses database connections inside it, let's call it ConnPackage. The connection IP is a public package variable, and has a default value: ...
3
votes
1answer
103 views

Using the variable in the MATLAB workspace using MATLink or any other packages

I have a program in MATLAB and after I run the program, I get some results in MATLAB's workspace. Now, I need to use these results in Mathematica. What I currently do is that I save the workspace as a ...
0
votes
0answers
87 views

Simplify BeginPackage with Package of Packages

I have a group of Packages that I use to create a lot of other Packages. Let's see an example: ...
1
vote
1answer
39 views

Package function not evaluating

I have a short package like this: ...
0
votes
1answer
58 views

Why is there a seeming discrepancy with the expression Cofactor?

I was trying to find out the cofactors of a square matrix. Then I came across the command Cofactor in Combinatorica package. ...
4
votes
1answer
239 views

Perturbation theory in general relativity using xAct

I'm trying to use the xAct Mathematica package for manipulating tensors, and I'd like to plug in a metric into the perturbation equations to first order in general relativity, and have everything ...
2
votes
1answer
69 views

How to package a function for export?

I often post code for functions on Stack-Exchange, and then later find that they are unexecutable - that people can't use them because I mistakenly omitted some private functions or values that are ...
2
votes
1answer
49 views

Factoring an ideal in a number field into prime ideals

I'd like to factor an ideal in a number field into prime ideals, exactly as in this example from the Sage documentation: ...
2
votes
0answers
108 views

Is this a bug in NCAlgebra library?

In course of my work with NCAlgebra package for Mathematica, http://math.ucsd.edu/~ncalg/ , I encountered unexpected behavior of replacements. I am using ...
2
votes
1answer
45 views

Removing commands used before loading package

Original Question: I used the convert command before loading the Units package. Although the convert command still works, Convert, Mile, and Feet are colored in red. What is the best way at this ...
2
votes
0answers
63 views

Are there any build-in or third-party packages for general topology or algebraic topology in Mathematica?

I am learning general topology (wiki) and algebraic topology (wiki). Are there any build-in or third-party packages for general topology or algebraic topology in Mathematica? Or, what would ...
0
votes
0answers
37 views

Is it possible to have a function with non-global parameters? [duplicate]

If I have functions in two packages that have parameters such as length_, width_ and height_; is there any way to have both packages loaded without generating messages such as "Symbol length appears ...
1
vote
0answers
62 views

A Stupid Question Maybe - EigenNDSolve

I would like to find out how accurate and how useful the chebyshev (collocation?) method is in finding many eigenvalues to a second-order ODE in one go. Specifically, I used the Mathematica package ...
3
votes
1answer
209 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 ...
0
votes
0answers
52 views

Confusion/Problem with importing Packages in Mathematica

I am very new to Mathematica and managed to confuse myself completely while trying to import a package. I am supposed to use a package that I did not code myself (it definitely works though). I ...
1
vote
1answer
210 views

How can I call the R-programming packages in my Mathematica?

I am trying to call the R-programming package called highfrequency in my Mathematica so that I can use its function rCov. I ...
1
vote
1answer
84 views

AutoGeneratedPackage Formatting

If you do Ctrl+Shift+o you open an option inspector. And then you can enable ...
0
votes
2answers
511 views

Problem in downloading “ToMatLab” package [duplicate]

Iam trying to download "ToMatLab" Package from http://library.wolfram.com/infocenter/MathSource/577/ but it is showing me an error message by showing a big question mark and "File could not be ...
0
votes
0answers
62 views

Package Problem

I am new to packages. But I am having the following problem. Say the package is defined as follows (on a Mac using Mathematica 10): File->New->Package And ...
1
vote
0answers
72 views

StyleSheet for custom application

I'm working on a package that for some reasons needs to be installed into a "non standard" path, that means neither $BaseDirectory or ...
8
votes
2answers
190 views

Is there a way to revert to the built-in function after overwritting it using Unprotect

When using Unprotect, we can overwrite a functions definition: Unprotect[Sqrt] Sqrt[x_]="blahblah" Protect[Sqrt] Once this is done, can we revert to the built-in ...