Maple ReadMe for "laylinalg" Package
for
Linear Algebra and Its Applications, Updated Second Edition
by
David C. Lay
Addison-Wesley Publishing Company, 2000

The files in the laylinalg package are not part of commercial Maple,
so you must install them.  The instructions on how to install the 
laylinalg package are detailed below.

These files are intended for use with Maple V.  

The laylinalg package is to accompany Linear Algebra and Its
Applications, Updated Second Edition, by David C. Lay, Addison-
Wesley Publishing, Co., Reading, Massachusetts, 2000.  The laylinalg
package includes data for over 800 numerical exercises from the text,
along with custom programs, and M-files that will help the student
learn fundamental concepts of linear algebra.  The commands are
explained in the Study Guide that accompanies the text.

Numerical data in the laylinalg package is organized by sections in
text.  For example, after you have installed the laylinalg package,
you can run Maple and type c1s1(); to obtain the data for exercises
in Chapter 1, Section 1.  To load the data for a specific exercise 
type c1s1(20) and you will get the data for exercise 20 in Chapter 1,
Section 1.

The laylinalg package also includes the following:
Supplementary Maple Commands (M-files)

bgauss - (Backward gauss) Uses the leftmost nonzero entry in a 
selected row as the pivot, and creates zeros in the pivot column 
above the pivot entry.

gauss - Uses the leftmost nonzero entry in a selected row 
as the pivot, and creates zeros in the pivot column, below the 
pivot entry or in specified rows.

gs - Performs the Gram-Schmidt process on the columns of a 
matrix.  The columns need not be linearly independent.

nulbasis - Creates a basis for the null space of a given matrix.

polyroots - Determines floating-point approximations to all roots 
(real and complex) of a polynomial.

proj - Computes the orthogonal projection onto a subspace.

randint - Creates a matrix with random integer entries.

randstoc - Creates a random stochastic matrix.

replace - Performs one row replacement operation.

scale - Scales one row of a matrix.

swap - Interchanges two rows of a matrix.

For more information on a particular command, you can type 
?laylinalg[function] where function is the name of the laylinalg
command of you choice.

--------------------------------------------------------------
INSTALLING THE LAYLINALG PACKAGE

If you want to use M-files that are not part of commercial Maple, 
such as those in the laylinalg package, you must tell Maple where to 
look for them.  You can access laylinalg package on the CD-ROM that 
comes with the book or on the Web site at 
http://www.laylinalgebra.com.

FIRST: Create a folder called laylinalg on your desktop.
Download the laylinalg package from the CD-ROM or Web site.
Unstuff the compressed archive.
Place the unstuffed files in this laylinalg folder on your desktop.

A.  FOR MACINTOSH: Drag the icon for the laylinalg folder into the
Maple V folder on your hard drive.  CAUTION: Do not put these files
in the Maple's own lib directory.  You only have to do this step once.

Open Maple.  Now you must tell Maple to look in that new folder.  Enter

libname; 

Your response may look something like this

"HARD DRIVE:MAPLE V RELEASE 5:lib"

This line is telling you where Maple is currently looking for its
data.  On the next line, type libname:= followed by the directory
information generated by your libname command.  Replace the word/words
after the last colon with laylinalg.  After the quotes, type a comma 
and libname;.  According to this example, the line should look like 
this

libname:="HARD DRIVE:MAPLE V RELEASE 5:laylinalg", libname;

Enter

with(laylinalg);

to see the contents of the laylinalg package.

B.  FOR WINDOWS: Copy the icon for the laylinalg folder into the
Maple V folder on your hard drive.  The Maple V folder should be in
Program Files folder.  CAUTION: Do not put the laylinalg folder
in the Maple's own lib directory.  You only have to do this step once.

Open Maple.  Now you must tell Maple to look in that new folder.  Enter

libname; 

Your response may look something like this


"C:\\PROGRAM FILES\\MAPLE V RELEASE 5.1/update",
"C:\\PROGRAM FILES\\MAPLE V RELEASE 5.1/lib"

This line is telling you where Maple is currently looking for its
data.  On the next line, type libname:= followed by the directory
information generated by your libname command.  Replace the word/words
after the last colon with laylinalg.  After the quotes, type a comma 
and libname;.  According to this example, the line should look like 
this

libname:="C\\PROGRAM FILES\\MAPLE V RELEASE 5.1/laylinalg", libname;

Enter

with(laylinalg);

to see the contents of the laylinalg package.
-----------------------------------------------------------------
ATTENTION: For both platforms, you will need to repeat all of these 
libname steps each time you open Maple.

To make the laylinalg package always available upon startup of Maple,
it is necessary to use a Maple initialization file to update Maple's
list of library names.  You can download a sample initialization file
from the Lay CD-ROM or Web site.  You will need to customize the 
initialization file so that it locates the laylinalg package on your
computer.  For additional information on Maple initialization files,
please consult Maple's online help.

-------------------------------------------------------------------
To make the laylinalg package generally available to all users over a
network, it is necessary to use a Maple initialization file to update
Maple's list of library names.  You can download a sample initialization file
from the Lay CD-ROM or Web site.  You will need to customize the 
initialization file so that it locates the laylinalg package on your
computer.  For additional information on Maple initialization files,
please consult Maple's online help.


--------------------------------------------------------------
The author and  Addison-Wesley Publishing Company  make no 
representation or warranty of any kind, expressed or implied, with 
regard to the programs contained herein, including without limitations 
any implied warranties of merchantability or fitness for particular 
purposes,  all of which are expressly  disclaimed.  The author and  
Addison-Wesley  Publishing  Company shall not be liable for incidental 
or consequential damages in connection with or arising out of the use 
of these programs.
 
AL
April 1999