November 7, 2007 - On systems with Mathematica 6, the placement of the init.m file that needs to be read (see below) to set the $Path and other items has moved to /Library/Mathematica/Kernel/init.m (or sometimes in the Library folder in the user's home folder). On Windows machines, the appropriate init.m file is intallation dependent and may be in a place like
..\Wolfram Research\Mathematica\6.0\SystemFiles\Kernel\Packages\init.m
or
..\Application Data\Mathematica\Kernel\init.m
where the ..\ in front depends on where you have Mathematica installed.
October 1, 2007 - On Macintosh OS X systems running Mathematica 6, we have found it better to install the UNIX/Linux version of MathTensor. So, on the Macintosh CD, if you are using Mathematica 6, use the mathtensor.tar.gz file in the Mathematica 6 folder and follow the UNIX instructions below. If you are not using Mathematica 6, use the files in the other folder and follow the Macintosh instructions.
May 5, 2007 - In Mathematica 6, you will need to set the output form for tensors in a different way. See Step 5 below for more details.
July 11, 2003 - Mathematica 5 or higher differences. Some users have reported that when they move to Mathematica 5 or higher, they are having load problems with MathTensor. One is that it appears that a TensorQ function has been added in Mathematica 5 or higher which will conflict with MathTensor's TensorQ function and give errors when loading. The quick fix for this is to just do
The $PreRead discussion on page 39 of the MathTensor book no longer works and should not be used.
Please read this entire document before you start the installation.
Windows or Macintosh (OS 9 or less):
Copy the MathTensor folder in the CD disk into the AddOns/Applications folder.
Go to the AddOns/Applications directory.
Copy the mathtensor.tar.gz to this directory. Then run
A MathTensor directory will be created containing the MathTensor files. Most versions of Unix/Linux
$Path=Join[$Path,{"(drive:Mathematica directory)\AddOns\Applications\MathTensor"}]
For example, after a typical Mathematica install, the above line will look like:
$Path= Join[$Path,{"(drive with Mathematica directory):AddOns:Applications:MathTensor 2.2"}]
$Path= Join[$Path,{"/Users/
$Path= Join[$Path,{"(drive/Mathematica directory)/AddOns/Applications/MathTensor"}]
To test the $Path, you need to restart Mathematica and then type
Some users have received a message like:
Syntax::sntoct1: 3 octal digits are required after \ to construct an 8-bit character.
being part of the $Path statement in the init.m file. This can be fixed by using the string
<<MathTensor.m (Macintosh or Unix/Linux/OSX)
If you use the Components function, you load with
<<Components.m (Macintosh or Unix/Linux/OSX)
DefineTensor[esc-a-esc,"esc-a-esc",{{1,2},1}]
There are several misprints or changes in the MathTensor Book:
Page 103: In the RiemannRule19, there is an R0 in the second term. This should just be an R.
Page 180: In the box at the top, AbosrbKdelta should be AbsorbKdelta.
Page 292: The file name CompOut.m two-thirds the way down the page should read CylOut.m.
Page 369: The PairAntisymmetrize entry should say and anti-symmetrizes over all the pairs.
Bug: The CommuteCD and OrderCD functions do not work properly when Rmsign is set to -1. Default is Rmsign = 1, so the bug does not occur if you have not set Rmsign to -1. If you do not use Rmsign=-1, this will not affect any computations. If you have to set Rmsign to -1, contact us. Comment: Tsimplify will not always work if you don't run Expand on an expression with tensors inside ( )'s. Always run Expand before running Tsimplify.