  
  [1X8 Installation and auxiliary functions[0X
  
  
  [1X8.1 Requirements[0X
  
  This   version   of   [5XRCWA[0m  needs  at  least  [5XGAP[0m 4.4.12,  [5XResClasses[0m 3.0.0,
  [5XGRAPE[0m 4.3 [Soi06],   [5XPolycyclic[0m 2.6 [EN09]   and   [5XGAPDoc[0m 1.3 [LN11].   With
  possible  exception  of  the  most  recent version of [5XResClasses[0m, all needed
  packages are already present in an up-to-date standard [5XGAP[0m installation. The
  [5XRCWA[0m  package can be used under UNIX, under Windows and on the MacIntosh. It
  is  completely  written  in  the  [5XGAP[0m  language and does neither contain nor
  require  external  binaries.  In  particular,  warnings  concerning  missing
  binaries issued by [5XGRAPE[0m or other packages can savely be ignored.
  
  
  [1X8.2 Installation[0X
  
  Like  any  other [5XGAP[0m package, [5XRCWA[0m must be installed in the [11Xpkg[0m subdirectory
  of the [5XGAP[0m distribution. This is accomplished by extracting the distribution
  file  in  this directory. If you have done this, you can load the package as
  usual via [10XLoadPackage( "rcwa" );[0m.
  
  
  [1X8.3 The Info class of the package[0X
  
  [1X8.3-1 InfoRCWA[0m
  
  [2X> InfoRCWA________________________________________________________[0Xinfo class
  
  This  is  the  Info class of the [5XRCWA[0m package. See section [13XInfo Functions[0m in
  the  [5XGAP[0m  Reference  Manual  for  a  description  of the Info mechanism. For
  convenience: [10XRCWAInfo([0m[3Xn[0m[10X)[0m is a shorthand for [10XSetInfoLevel(InfoRCWA[0m,[3Xn[0m[10X)[0m.
  
  
  [1X8.4 The testing routine[0X
  
  [1X8.4-1 RCWATestInstall[0m
  
  [2X> RCWATestInstall( [0X[3X[0X[2X ) ______________________________________________[0Xfunction
  [6XReturns:[0X  Nothing.
  
  Performs  a  nontrivial computation to check whether an installation of [5XRCWA[0m
  appears to work. Errors, i.e. differences to the correct results of the test
  computation,     are     reported.    The    processed    test    file    is
  [11Xpkg/rcwa/tst/testinstall.tst[0m.
  
  [1X8.4-2 RCWATestAll[0m
  
  [2X> RCWATestAll( [0X[3X[0X[2X ) __________________________________________________[0Xfunction
  [6XReturns:[0X  Nothing.
  
  Runs  the  full  test  suite  of  the  [5XRCWA[0m  package. Any differences to the
  supposed  results  of the test computations are reported. The processed test
  file is [11Xpkg/rcwa/tst/testall.g[0m.
  
  Please  note  that  the  test  suite is a tool for developing. The tests are
  deliberately  very  volatile  to allow to spot possible problems of any kind
  also  in  other  packages or in the [5XGAP[0m Library. For this reason you may see
  reports  of  differences  which  simply  reflect  improved  methods in other
  packages  or in the [5XGAP[0m Library (for example an object may already know more
  of  its attributes or properties than it is expected to, or an object may be
  represented  in  a  better  way),  or which are caused by changes of the way
  certain  objects  are  printed, and which are therefore harmless. However if
  the  correct  and  the actual output look different mathematically or if you
  see  error  messages or if [5XGAP[0m crashes, then something went wrong. Also, run
  times  which  are  much longer than the predicted times shown may indicate a
  problem.
  
  
  [1X8.5 Building the manual[0X
  
  The  following  routine is a development tool. As all files it generates are
  included in the distribution file anyway, users will not need it.
  
  [1X8.5-1 RCWABuildManual[0m
  
  [2X> RCWABuildManual( [0X[3X[0X[2X ) ______________________________________________[0Xfunction
  [6XReturns:[0X  Nothing.
  
  This  function  builds  the  manual  of the [5XRCWA[0m package in the file formats
  LaTeX,  PDF,  HTML  and  ASCII  text.  This is accomplished using the [5XGAPDoc[0m
  package  by Frank Lübeck and Max Neunhöffer. Building the manual is possible
  only on UNIX systems and requires PDFLaTeX.
  
  
  [1X8.6 Loading and saving bitmap pictures[0X
  
  [5XRCWA[0m  provides  functions to create bitmap picture files from suitable pixel
  matrices  and  vice  versa.  The author has successfully tested this feature
  both  under  Linux  and  under  Windows,  and  the  produced pictures can be
  processed further with many common graphics programs:
  
  [1X8.6-1 SaveAsBitmapPicture[0m
  
  [2X> SaveAsBitmapPicture( [0X[3Xpicture, filename[0X[2X ) _________________________[0Xfunction
  [6XReturns:[0X  Nothing.
  
  Writes  the  pixel  matrix  [3Xpicture[0m  to  a bitmap- (bmp-) picture file named
  [3Xfilename[0m.  The  filename  should  include  the entire pathname. The argument
  [3Xpicture[0m  can  be  a GF(2) matrix, in which case a monochrome picture file is
  generated.  In  this  case,  zeros stand for black pixels and ones stand for
  white  pixels.  The argument [3Xpicture[0m can also be an integer matrix, in which
  case  a  24-bit  True  Color  picture  file  is generated. In this case, the
  entries  of  the  matrix are supposed to be integers n = 65536 * red + 256 *
  green  +  blue in the range 0, dots, 2^24-1 specifying the RGB values of the
  colors of the pixels.
  
  The    picture    can    be   read   back   into   [5XGAP[0m   by   the   function
  [10XReadFromBitmapPicture([3Xfilename[0m[10X)[0m.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X[0X
    [4Xgap> color   := n->32*(n mod 8)+256*32*(Int(n/8) mod 8)+65536*32*Int(n/64);;[0X
    [4Xgap> picture := List([1..512],y->List([1..512],x->color(Gcd(x,y)-1)));;[0X
    [4Xgap> SaveAsBitmapPicture(picture,"~/images/gcd.bmp");[0X
    [4X[0X
  [4X------------------------------------------------------------------[0X
  
  
  [1X8.7 Running demonstrations[0X
  
  [5XRCWA[0m  provides  a  routine  to run demonstrations of its functionality or of
  other features of [5XGAP[0m. It is intended for being used in talks.
  
  [1X8.7-1 RunDemonstration[0m
  
  [2X> RunDemonstration( [0X[3Xfilename[0X[2X ) _____________________________________[0Xfunction
  [6XReturns:[0X  Nothing.
  
  This  function  executes the commands in the file named [3Xfilename[0m. It shows a
  command  and the corresponding output, waits for a keystroke, shows the next
  command and the corresponding output, waits again for a keystroke, and so on
  until  the  end of the file. The demonstration can be stopped by pressing [10Xq[0m.
  The  function  is  adapted  from  the  function  [10XDemonstration[0m  in  the file
  [11Xlib/demo.g[0m of the main [5XGAP[0m distribution.
  
  
  [1X8.8 Converting GAP logfiles to HTML[0X
  
  [5XRCWA[0m provides a routine to convert [5XGAP[0m logfiles to HTML.
  
  [1X8.8-1 Log2HTML[0m
  
  [2X> Log2HTML( [0X[3Xlogfilename[0X[2X ) __________________________________________[0Xfunction
  [6XReturns:[0X  Nothing.
  
  This function converts the [5XGAP[0m logfile [3Xlogfilename[0m to HTML. The extension of
  the input file must be [10X*.log[0m. The name of the output file is the same as the
  one of the input file except that the extension [10X*.log[0m is replaced by [10X*.html[0m.
  There  is  a sample CSS file in [11Xrcwa/doc/gaplog.css[0m, which you can adjust to
  your taste.
  
  
  [1X8.9 Some general utility functions[0X
  
  [5XRCWA[0m  introduces  a couple of small utility functions which can be used in a
  more  general  context: The function [10XGeneratorsAndInverses([3XG[0m[10X)[0m returns a list
  of  generators  of  [3XG[0m  and their inverses, [10XEpimorphismByGenerators([3XG[0m[10X,[3XH[0m[10X)[0m is a
  shorthand                 for                 [10XGroupHomomorphismByImages([3XG[0m[10X,[3XH[0m[10X,
  GeneratorsOfGroup([3XG[0m[10X),GeneratorsOfGroup([3XH[0m[10X))[0m  (there  is also an [10XNC[0m version of
  this),  the  function [10XListOfPowers([3Xg[0m[10X,[3Xexp[0m[10X)[0m returns the list [10X[[3Xg[0m[10X,[3Xg[0m[10X^2,...,[3Xg[0m[10X^[3Xexp[0m[10X][0m
  of  powers  of [3Xg[0m,  the  function  [10XAllProducts([3Xl[0m[10X,[3Xk[0m[10X)[0m  returns  the list of all
  products  of  [3Xk[0m  entries of the list [3Xl[0m, the functions [10XDifferencesList([3Xl[0m[10X)[0m and
  [10XQuotientsList([3Xl[0m[10X)[0m  return  the  list of differences respectively quotients of
  consecutive  entries  of  the list [3Xl[0m, and the function [10XFloatQuotientsList([3Xl[0m[10X)[0m
  returns the list of floating point approximations of the latter.
  
  There      are      also      methods      [10XEquivalenceClasses([3Xl[0m[10X,[3Xinv[0m[10X)[0m     and
  [10XEquivalenceClasses([3Xl[0m[10X,[3Xrel[0m[10X)[0m, which decompose a list [3Xl[0m into equivalence classes
  under an equivalence relation. The equivalence relation is given either as a
  function  [3Xinv[0m  computing  a  class  invariant  of a given list entry or as a
  function  [3Xrel[0m  which  takes as arguments two list entries and returns either
  [10Xtrue[0m  or  [10Xfalse[0m  depending  on  whether  the  arguments  belong  to the same
  equivalence class or not.
  
