CPS 304
HW 2
Due: Mar. 3
(10 pts) Solve the linear system
x1 + 3 x2 + 2 x3 =
2
2x1 5x2 3x3 = 3
3x1 + 11x2 + 10x3 = 12
using the process developed in class (dont do any row swapping). In particular do the steps below (show
all work):
a) Compute the LU fact

CPS 304
LAB 8
Due: Apr. 7
For this assignment you will run a number of dierent Monte Carlo simulations. Since random number
generators output numbers in the range [0, 1), these often need to be mapped into a dierent interval [a, b].
You can use the transf

CPS 304
LAB 7
Due: Mar. 14
In this lab, we will examine the solution of linear systems using the LAPACK library.
1
The LAPACK Library
The LAPACK library is a collection of routines for more advanced problems in linear algebra such as solving
linear system

CPS 304
LAB 6
Due: Mar. 7
In this lab, we will examine the LU factorization and some other terminology in solving linear systems.
1
Permutation Matrices
Recall that a permutation matrix P is an identity matrix with the rows (or columns) swapped. A permuta

CPS 304
LAB 5
Due: March 5
In this lab, we will examine some basic concepts in using MATLAB to solve linear systems of equations (i.e.
solve Ax = b for the vector x)
1
Index of Important MATLAB Commands
Here is a list of operations that will be needed in

CPS 202
LAB 4
Due: Feb. 28
This assignment will require a formal technical report.
1
Matrix-Vector Product
The matrix-vector product is written symbolically as
y = Ax
where A is an n m matrix, x is a column vector of length m and y is a column vector of l

CPS 304
Lab 3
Due: Feb 21
In this lab, you will perform some simple timing experiments on the festivus cluster. In order to obtain accurate
timings, you will need to follow the guidelines given in class, in particular, you will need to run your programs o

CPS 304
Lab 2
Due: Feb 14
There is a shell program to start this lab that needs to be copied into your working directory. You should create a
directory for this lab. Change into this directory, then type
$
cp /export/CLASSES/CPS304/LAB2/* .
the * at the e

Fitting Power Law Correlations in MATLAB
Introduction
One of the most frequent types of correlation in the sciences is the power law correlation. Two variables t
and n are said to obey a power law correlation if the relationship between them can be expres

Summary of Necessary Mathematical Quantities
1) General properties of norms
A norm is a generalization of the concept of absolute value and as such, it should obey the same
types of relations as absolute value. In order to be a norm, an operation must sat

CPS 304
Midterm Project
Due: Apr. 4
You may not discuss this project with anyone but me.
The data les needed for this project are located in the directory
/export/CLASSES/CPS304/MID
You should copy all of the les in this directory into a working directory

CPS 304
HW 4
Due: April 2
The equation that describes a falling point mass with a drag force that is proportional to the velocity is
given by
m v (t) = mg k v (t)
where m is the mass of the object, g is the acceleration of gravity and k is a constant that

CPS 202
Homework 1
Due: Jan. 31
1) Suppose you have the following vectors/matrices with indicated dimensions:
A(= 3 5);
B (= 6 10);
x(= 6 1);
C (= 2 10);
y (= 10 1);
D(= 5 5);
z (= 5 1).
What are the resulting dimensions of the following calculations:
AD,

CPS 304
1
Dr. Little
LAB 1
Due: Feb. 11
Introduction
In this lab, you will learn to do the following:
1) Log onto a UNIX based computer
2) Compile and run a FORTRAN 90 program
3) Transfer the output les from the UNIX computer to your desktop PC.
4) Plot t