| |
|
MATH 609-602: Numerical Analysis
Fall 2005 Labs Homepage
Instructor: Prof. Wolfgang Bangerth
Time and place: TR 9:35 AM - 10:50 AM, ZACH 104D
Course webpage: Math 609-602 Numerical Analysis
Teaching assistant:
Computer lab time and place: W 1:50 PM - 2:40 PM, BLOC 126
Office hours: M 1:30 PM - 2:30 PM or by appointment
Homework Assignments
Programming Assignments
Lab files
- (08/31/05)
Floating-Point Numbers,
float.c,
aprogram.c,
bprogram.c
- (09/07/05)
Newton Method,
newton.c
- (09/14/05)
Multidimensional Newton Method,
multi_newton.c
- (09/28/05)
Gauss-Seidel Method,
jacobi.c,
gauss_seidel.c
- (10/05/05)
SOR Method,
maxeigen.m,
sor_exercise.c sor.c
cg.c
- (10/12/05)
Power Method,
power_method.m,
find_evalue.m
- (10/19/05)
Least Square Method,
leastsquare.m,
yahoo.dat,
yahoo2.dat,
Price-Data.com
- (10/26/05)
Gram-Schmidt Process,
gram_schmidt.m,
gram_schmidt.mws
- (11/02/05)
box.m,
trapezoid.m,
midpoint.m
- (11/09/05)
euler_method.m,
example.m,
euler_method2.m
- (11/17/05)
uranium decay chain,
Bessel Funcltions,
crank_nicolson.m,
bessel_backward.m,
bessel_cn.m
- (11/30/05)
explicit_stability,
implicit_stability,
crank_nicolson_stability.m,
second_taylor_stability.m,
runge_kutta_stability.m
- How to write the report?
Once you get your code running you should send your program to me
by e-mail for the given programming assignment.
You don't have to write and hand in your source code in the report.
Each report should include:
- Description of the problems in the assignment.
- Test results for each problem.
- Discussion of the results.
The format of your report can be latex, MS-word or whatever you prefer. In test results for each problem, you may include the tables, figures, and graphs
to present your results in reasonable ways.
In addition you can attach different tests, maple/matlab/mathematica worksheets
and everything that may seems related to the problems. Please print out your report and submit it in the class and send me your source code by email.
Links
Connecting to the Calclab machines:
-
Using X-Win from TAMU open access labs:
-
Start X-Win: Start > Programs > Communications > X-Win, and then
-
Start an X session on Calclab: right-click X-Win on the taskbar > Sessions
>
> Calclab1 (2,3 or 4);
-
Using telnet:
-
From a terminal/command prompt use: telnet calclab1.math.tamu.edu, or
-
Try this link
-
Using Secure Shell (with secure shell you can also connect to the machines
in BLOC126):
-
From Unix/Linux terminal use: ssh username@bloc126-xx.math.tamu.edu
where 'username' is your username and
'xx' is the number of the computer - from 01 to 24;
-
From TAMU open access labs use:
Start > Programs > Communications > TeraTermPro SSH;
Transfering files to/from Calclab:
-
From a terminal/command prompt use: ftp calclab1.math.tamu.edu, or
-
From TAMU open access labs use:
Start > Programs > Communications > Winsock FTP;
Changing your password:
-
Connect to Calclab and then in a terminal use: yppasswd, or
-
If you use X-Win: KDE menu > Utilities > Change Password;
Some usefull Unix/Linux shell commands:
-
'ls' - list the files in the current directory
'ls -la' - list all files in the current directory using
long listing format;
-
'pwd' - print working (current) directory;
-
'mkdir programs' - create a new subdirectory 'programs' in the current
directory;
-
'cd programs' - change the current directory to 'programs';
-
'cd ..' - change to the parent directory;
-
'cd' - change to your home directory;
-
'man command' - display the on-line manual pages for 'command'
(e.g. 'man ftp', 'man telnet', 'man ls', etc.);
Some text editors:
-
kwrite: KDE Menu > Applications > Advanced Editor;
-
emacs: KDE Menu > Applications > Emacs;
Compiling programs:
| C |
gcc program.c or gcc -lm program.c |
| C++ |
g++ program.cpp |
| Fortran |
g77 program.f |
To run the program type: ./a.out
|