How to use NCAlgbra and NCGB
First Download the *.zip file of you choice and uncompress it.
You will get
NC/lotsa stuff .
UNIX : Change into the NC/NCAlgebra directory and
load NCAlgebra by typing:
Get["NCAlgebra.m"]
To run NCAlgbera.m from another directory
(or to run NCGB.m at all or NCAlgebra below version 3.7, Sept 2002)
you will have to
set paths as described below (it is very easy).
We pitch our explaination toward a PC user,
since a UNIX user will also follow it.
PC:
PATHS
-
Possibly the default paths we have set in NC are correct
for you.
For example,
if you have uncompressed *.zip to the location C:\NC
you will not have to edit our file NC/SetNCDir.m
which sets paths to NC programs.
-
Otherwise there are two ways to set paths (in NC version 3.7 )
-
Run the file NC/NCInstall.m in Mathematica.
This will usually customize our file
NC/SetNCDir.m
to your installation. Or if this fails:
-
You will need to edit the file NC/SetNCDir.m yourself (the old fashion approach).
-
Edit the line (on a PC use notepad)
$NCDir$ = "C:/NC/";
Change it to
$NCDir$ = "YOURPATH/NC/";     For example,   $NCDir$ = "E:/NC/";
Save the file, SetNCDir.m
CONGRATULATIONS
YOU ARE READY TO RUN NCAlgebra.m or NCGB.m FROM ANY DIRECTORY!
-
To load NCAlgebra type:
Get["YOURPATH/NC/SetNCDir.m"]
 
 
For example,
 
Get["E:/NC/SetNCDir.m"]
Get["NCAlgebra.m"]
Various demo.nb's are in the directory NC/NCAlgebra.
-
To run NCGB for a demo open and run the notebook:
 
 
 
 
 
 
 
NC\work\GoNCAlgebra.nb
Possibly you will have change the path to SetNCDir.m inside GoNCAlgebra.nb.
The demo should perform the NCProcess computations automatically, latex the output, and open a dvi file
Miscellaneous remarks
Uncompressing (on a PC). Click on the item c:\ *.zip (or e:\*.zip) to uncompress
it and create
a directory c:\NC (or e:\NC)
-
You can use Aladdin extractor or winzip or whatever zip program you have.
-
If clicking doesn't work, you need to load one of the zip programs
listed and then unzip it from the program.
-
If using winzip you will have to select "Extract" and type "e:\NC" when
asked where to extract the files to.
Some of the output of our NCGB program is available in the associated DOS window.
(For example the output of PrintMonomialOrder[]) You might have to click
on the toolbar on the bottom of your screen to open up the DOS window for
NCGB.exe.
Those familiar with windows will see how to copy the notebook "GoNCAlgebra.nb"
somewhere else and start a newNC project. One may wish to put the new *.nb
file in a special folder since several auxiliary files will be created.
Should Latex Output Fail
Latex Interface with NCGB If you want to use the NCGB automatic latex
output you may possibly have to edit the file
C:\NC\NCGB\MmaSource\NCGBPlatformSpecific.m
http://www.snafu.de/~cschenk/miktex/
Some distributions by default install latex.exe and yap.exe at
C:\latex\miktex\bin\latex.exe
and C:\latex\miktex\bin\yap.exe
if this is the case you must find the file \NC\NCGB\MmaSource\NCGBPlatformSpecific.m
and
-
Use notepad to edit the lines
latexCommand = "c:\\texmf\\miktex\\bin\\latex.exe";
dviCommand = "c:\\texmf\\miktex\\bin\\yap.Exe";
Change them to
latexCommand = "c:\\latex\\miktex\\bin\\latex.exe";
dviCommand = "c:\\latex\\miktex\\bin\\yap.Exe";
(or wherever these programs exist on your PC)
-
Save the file, NCGBPlatformSpecific.m
-
Quit the notepad.