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)

4
votes
1answer
106 views

How to transform a DumpSaved .mx file to .m file conveniently?

I have many DumpSave-d .mx files under a directory. They are generated under Linux. The .mx ...
5
votes
1answer
171 views

VariationalD giving the wrong solution?

EDIT: As pointed out in the comments, VariationalD gives a variational derivative (which I don't want), not a derivative with respect to a function (i.e. ...
5
votes
1answer
920 views

FeynArts not working properly

So I have installed all FeynArts folders (from 3.5 to 3.7) with FeynCalc 8.0.1., and none of it is working properly :\ First I load the path to specific FeynArts package (3.5 for instance), then, by: ...
4
votes
2answers
235 views

Simplifying the trace of a matrix expression

I have a long expression involving matrices that I derived using the NCAlgebra package. Can I simplify the trace of the expression? For example, say b is a scalar ...
4
votes
2answers
137 views

Function behaves differently inside a package than outside

I defined a function TestHead in a notebook as follows: TestHead[z___] := TrueQ[{z} == Cases[{z}, x_ /; Head[x] === avar]] to ...
3
votes
1answer
134 views

Creating event handler with ImplementJavaInterface inside a package

I am trying to make my Mathematica function to serve as an event handler for the events generated by a Java object. Specifically, I have a Java object that connects as a client to a server that ...
7
votes
1answer
106 views

$InputFileName backwards compatibility

What would be a good replacement for $InputFileName (which has been added recently to Mathematica 8) to achieve backwards compatibility with let's say M6 and M7? I ...
6
votes
1answer
141 views

Could a package be composed of references?

Could a package be composed of references (e.g. usage messages)? Do the code for an induvidual function implemented in a package has to be physically in that package file where it is referenced (i.e. ...
5
votes
1answer
278 views

How to make a filled Ellipsoid?

I want to make a filled Ellipsoid, but it seems Filling options doesn't work in Graphics ...
4
votes
3answers
272 views

Can't load LevelScheme package

My problem is that I can not load the LevelScheme Package. I am using Mathematica 8. I downloaded and unzipped the folder from this website. I saved it in the ...
1
vote
0answers
86 views

How to automatically load package in Player Pro by making backup files of init.m? [closed]

I dont know whether I am asking the right question or not but I am curious to know whether we can automatically load the package in ...
1
vote
0answers
168 views

Package autoloading not working in CDF and Player Pro

I have made a package BeginPackage["top`"] t[x_]:=MessageDialog["This is top"] t1[x_]:=MessageDialog["This is top1"] EndPackage[] and used the code of this ...
0
votes
1answer
73 views

How can a package use a variable of a notebook?

I have defined a function g in a package. It is: g[x_]:=x/.t->3 Now I work in notebook with the command: ...
0
votes
1answer
106 views

Images in package Not visible

I want to make a package where some variables are initialized to images. but when i save the package, all images are in the form of ImageData that are very long. ...