Load the package

This loads the package from the default directory $HOME/.Mathematica/Applications/xAct for a single-user implementation under Linux, or from /user/local/Wolfram/Mathematica/5.2/AddOns/Applications/xAct for a system-wide installation. For installation under Windows or Mac see the Installation Notes.

In[1]:=

MemoryInUse[]

Out[1]=

3059504

In[2]:=

<<xAct`xPerm`

--------------------------------------------------------------------------------

Package xAct`xCore`  version 0.5.0,  {2008, 5, 16}

CopyRight (C) 2007-2008, Jose M. Martin-Garcia, under the General Public License.

--------------------------------------------------------------------------------

Package ExpressionManipulation`

CopyRight (C) 1999-2008, David J. M. Park and Ted Ersek

--------------------------------------------------------------------------------

Package xAct`xPerm`  version 1.0.1,  {2008, 5, 16}

CopyRight (C) 2003-2008, Jose M. Martin-Garcia, under the General Public License.

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

Connecting to external linux executable...

Connection established.

Comparing, we see that the packages take around 10Mbytes, most of which comes from xCore`:

In[3]:=

MemoryInUse[]

Out[3]=

13092920

In[4]:=

Out[3] - Out[1]

Out[4]=

10033416

Note the structure of the ContextPath. There are several contexts: xAct`xPerm` contains the new reserved words. xAct`xCore` contains my added Mathematica functions. xAct`ExpressionManipulation` is an external package loaded to perform additional expression manipulations.  System` contains Mathematica's reserved words. The current context Global` will contain your definitions (it is now empty).

In[5]:=

$ContextPath

Out[5]=

{xAct`xPerm`, xAct`xCore`, xAct`ExpressionManipulation`, Global`, System`}

In[6]:=

Context[]

Out[6]=

Global`

In[7]:=

? Global`*

Information :: nomatch : No symbol matching Global`* found. More…

We append the Doc directory of xAct` to the file path to find example files below:

In[8]:=

AppendTo[$Path, $xActDocDirectory] ;

The Mathematica built-in Timing does not include the time spent in the external executables, though AbsoluteTiming does it. We introduce our own timing function:

In[9]:=

SetAttributes[myTiming, HoldFirst] ;

myTiming[expr_] := Module[{time, result}, time = SessionTime[] ; result = expr ; Print[(SessionTime[] - time) Second] ; result]

Technical notes:
There are three global variables storing information on the connection to the external executable:

Whether the connection was possible or not is stored in

In[11]:=

$xpermQ

Out[11]=

True

The name of the executable is given by

In[12]:=

$xpermExecutable

Out[12]=

/home/jmm/.Mathematica/Applications/xAct/xPerm/mathlink/xperm.linux

The full description of the link is

In[13]:=

$xpermLink

Out[13]=

LinkObject[/home/jmm/.Mathematica/Applications/xAct/xPerm/mathlink/xperm.linux, 2, 2]


Created by Mathematica  (May 16, 2008) Valid XHTML 1.1!