# Tag Info

6

There are some doubts about using SaveDefinitions (1), (2), so let's implement brute force approach which may be used later automaticaly. Scheme Needs @ yourPackage (*a*) CDFDeploy[...]& @ With[{ source = (text content of the package, encoded or whatever) (*b*) }, DynamicModule[{ ... }, ... , Initialization:>( Get[#]& @ ...

3

A Mathematica package is just a file with the .m or .wl extension that contains Mathematica expressions. Get will simply evaluate these expressions. The "Run Package" button will simply evaluate everything in the package file. It's equivalent to Get["/path/to/mypakcage.m"]. The "Update" button rebuilds the Function and Section menus just left of this ...

2

Just use the same syntax as in your link: SUNTrace[Commutator[SUNT[SUNIndex[a]], SUNT[SUNIndex[b]]] Commutator[ SUNT[SUNIndex[c]], SUNT[SUNIndex[d]]], Explicit -> True] EDIT: Addressing additional question from OP's comments The thing is that if you write SUNTrace[SUNT[SUNIndex[a]].SUNT[SUNIndex[b]].SUNT[SUNIndex[c]].SUNT[SUNIndex[d]‌​], ...

2

I was able to generate one instance (the all-zeros solution) but FindInstance refuses to generate 2 or more for me (v10.1) using the final argument, despite copious solutions existing. Horrible hack incoming in 3... 2... 1: (* N.B I removed your greek and the sphere constraint is now Ball. If you only want the surface of the sphere, then Sphere is ...

Only top voted, non community-wiki answers of a minimum length are eligible