Load the package and configure

Invar` requires the free package xTensor` to perform the underlying tensor and permutation manipulations. It can be downloaded from
    http://metric.iem.csic.es/Martin-Garcia/xAct/
For a single-user installation under Linux the file xAct_<version>.tar.gz must be unpacked in the directory $Home/.Mathematica/Applications giving a directory xAct. Then unpack the Invar.tar.gz file inside the xAct directory.  We assume that configuration in the following. See the Readme file for more information, including installation instructions for other operating systems.

We first load the Mathematica kernel, and the xTensor` package from the default directory

In[1]:=

mathRAM = MemoryInUse[]

Out[1]=

3059792

In[2]:=

<<xAct`xTensor`

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

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.

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

Package xAct`xTensor`  version 0.9.5,  {2008, 5, 16}

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

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

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

Note: When loading xTensor` inside a Windows environment, a black DOS-like window may appear. This is caused by the C link used to speed computations and should not be closed.

In[3]:=

xtensorRAM = MemoryInUse[] - mathRAM

Out[3]=

12729104

Then we read the Invar` package.

In[4]:=

<<xAct`Invar`

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

Package xAct`Invar`  version 2.0.2,  {2008, 3, 5}

CopyRight (C) 2006-2008, J. M. Martin-Garcia, D. Yllanes and R. Portugal, under the General Public License.

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

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

** DefConstantSymbol: Defining constant symbol sigma.

** DefConstantSymbol: Defining constant symbol dim.

We see that, in Mathematica 5, the MathKernel takes only 2 Mbytes, xTensor` takes 9 Mbytes, and Invar` takes 41 Mbytes:

In[5]:=

invarRAM = MemoryInUse[] - mathRAM - xtensorRAM

Out[5]=

299616

In[6]:=

Remove[mathRAM, xtensorRAM, invarRAM]

Note the structure of the ContextPath. There are six contexts: xAct`Invar`, xAct`xTensor`, xAct`xPerm` and xAct`ExpressionManipulation` contain the respective reserved words. System` contains Mathematica's reserved words. The current context Global` will contain your definitions and right now it is empty.

In[7]:=

$ContextPath

Out[7]=

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

In[8]:=

Context[]

Out[8]=

Global`

In[9]:=

? Global`*

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


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