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)

3
votes
0answers
70 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
23 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
50 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
95 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
69 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
76 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
32 views

Package function not evaluating

I have a short package like this: ...
0
votes
1answer
40 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
159 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 ...
1
vote
0answers
36 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
35 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
94 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
42 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
55 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
49 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 ...
1
vote
1answer
122 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
39 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
186 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
64 views

AutoGeneratedPackage Formatting

If you do Ctrl+Shift+o you open an option inspector. And then you can enable ...
0
votes
2answers
236 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
49 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
52 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
185 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 ...
4
votes
2answers
153 views

Coordinate free differential forms package

I am looking for a package in Mathematica which can handle differential forms in a coordinate free manner. I am aware of several packages which do differential forms, but it seems that for all of them ...
2
votes
1answer
51 views

Mathematica 8: EdgeList and CommunityStructureAssignment shadowing problem

I'm facing some issues when trying to use the CommunityStructureAssignment function from the GraphUtilities package in Mathematica 8. I'd like to output a ...
2
votes
1answer
70 views

How to overwrite a private symbol value temporarily?

I have a package file mypackage.m with BeginPackage["Foo`Bar`"] Begin["`Private`"] tmp=2; foo=2*tmp; myprogram[foo] ... End[] EndPackage[] The file is VCS ...
1
vote
1answer
77 views

Symbol resolution for contexts inside packages

Say I create $UserBaseDirectory/Autoload/MyPackage/init.m containing: ...
11
votes
1answer
116 views

$Path hijacked by PacletManager?

Summary: Since Mathematica version 6, the PacletManager seems to have engineered an escalating hijack of the $Path variable. Add-on packages need to have a ...
11
votes
0answers
165 views

Can code optimize code?

Are there functions, programs or packages that deal with optimizing mathematica code i.e. re-writing ineffecive or convoluted code. -This question has haunted me since I joined SE. The background for ...
5
votes
1answer
157 views

Installing R packages using RLink on Mac OS X

Is there any updates regarding installing CRAN packages via RLink in Mathematica 10 on Mac OS X? Or are we still stuck with the base R package and that's it? I was able to point to my R distribution ...
8
votes
1answer
134 views

How to sort the functions in a Package?

Once a Package like abc` has been installed, we can use "?abc`*" to scan all the functions defined in this Package. Now I ...
0
votes
0answers
17 views

Trouble picking up package definitions [duplicate]

I open a new notebook and type ClearAll[test]; test[x_] := x + 42; I save it as Temp.nb and also as ...
3
votes
2answers
96 views

Testing a package in Mathematica 9

I am in the process of writing a package, but my way of testing it just seems wrong and inefficient. Each time I edit the .m file, I save it, quit the kernel, call the package in a separate notebook ...
3
votes
1answer
119 views

Can a Mathematica Application be inside another Application?

The file structure of a simple MMA Application can have the form: MyApplication MyApplication.m SomeAuxiliarPack.m Kernel init.m Where ...
8
votes
2answers
148 views

How to unprotect a variable in a package

In Mathematica 9, I had the function(s). I apologize for the weak formatting. ...
1
vote
0answers
44 views

Placing package in existing Utilities` context has odd paraellelization effect

I noticed this in V.10 but possibly it was in effect in V.9. I have a package which in simplified form looks like:- ...
0
votes
1answer
148 views

A symbol occurs in more than one context:one of the definitions is shadowed

I started Mathematica 10 and run as the tutorial says: trainingset = {1 -> "A", 2 -> "A", 3.5 -> "B", 4 -> "B"}; c = Classify[trainingset] but the ...
5
votes
1answer
312 views

How to use MathPSfrag package in Mathematica 10?

I am interested to use LaTeX like labels in the plots that I prepare in Mathematica, and hence, I downloaded the MathPSfrag package from this website ...
0
votes
1answer
84 views

Developing Mathematica applications with IntelliJ IDEA [duplicate]

I create Mathematica application. For example testPrj. Now I want load this application for test. Here is a problem: how can I setup environment for loading my application with simple ...
1
vote
0answers
52 views

Best practice to group and have your favorite custom functions available at startup [closed]

The mathematica stackexchange site is a treasure trove of great functions that the user community has shared to make the use of mathematica easier. Many of those functions are very useful for daily ...
1
vote
0answers
48 views

Needs entry point of a package from a Mathematica script

I am writing a bunch of Mathematica scripts to run command line in a HPC environment. I am organising my solution in small chunks I can test separately. So I have a directory structure like: ...
0
votes
1answer
53 views

how to make contents of package visible to the autocomplete system? [closed]

I have created a package file like this, in "/path/to/lib/tools.m": ...
0
votes
0answers
16 views

From ReadList[package,String] back to a Package

I read in a package as a list of strings Using ReadList ReadList["package1`", String] StringReplace can then be used on (e.g. mapped over) this list of strings. Is there anyway to save/export the ...
11
votes
1answer
244 views

Making a Mathematica package manager?

I'd like to get a serious discussion started about a package manager. This has come up elsewhere, and many people have implemented their own solutions. It would be nice to have a standardized way to ...
0
votes
1answer
63 views

How I can define a new function as a function argument?

I need to pass a function with t as independent variable as a function parameter and want to create a new function of the same through this provided the argument of another function. Here is my code. ...
0
votes
1answer
131 views

Getting “Null” output from package?

I have a script written to test a package as follows: ...
7
votes
0answers
73 views

Maximum number of literal values for SetDelayed?

Under what circumstances should I expect Mathematica to turn a delayed assignment into an immediate assignment? I have put together a minimal example (available here) which demonstrates this behavior. ...
0
votes
0answers
90 views

CleanSlate[] not working?

...
4
votes
2answers
133 views

Listing all usage messages from a loaded package

I am writing several packages in collaboration with others. In order to help the group use my packages, I want to provide them with a simple reference of function names and usage messages. How can I ...