MATH 6651 - Using Software Programs

You should get an account on the UNIX.aml.yorku.ca. For instructions, check http://aml.yorku.ca/

From any unix machine you Can login remotely using the command

telnet UNIX.aml.yorku.ca

Once you are logged on to UNIX.aml.yorku.ca, you can access some of the Burden/Faires programs in the directory /common/MATH4141 . (Those unfamiliar with unix commends can check http://www.math.yorku.ca/unixhelp.) This directory has a few subdirectories: c, fortran, matlab, maple, etc. In particular, if you want to move, say, the file alg021.c to your home directory you would issue the commands:

cd /common/MATH4141/c
cp alg021.c ~
cd ~

Now that you have the file alg021.c, you can use

cc alg021.c -lm

to compile it; this produces an executable file called a.out; use the command a.out to run it. If you want your executable file to have the name FileName use

cc -o FileName alg021.c -lm

instead. For more information, use the command man cc


Note: the file alg021.c is designed to apply the Bisection Algorithm to find a root of the equation x3 + 4x2 -10 = 0.


 If you want to use the corresponding FORTRAN program get the file alg021.f, and use

xlf alg021.f

to compile it; this produces an executable file called a.out; use the command a.out to run it. If you want your executable file to have the name FileName use

xlf -o FileName alg021.f

instead. For more information, use the command man xlf


Note: Some of the files are designed to handle specific functions. For example, alg021.c and alg021.f are designed to find a root of the specific function f(x) = x3+4x2-10. To deal with other functions you can edit the appropriate line in the program. Other programs, especially those from Chapter 6, assume that the input is read in from a file. When you run the programs, instructions are given for dealing with this input.