Scientific Programming CSCI 145-04 Spring 2007

Office Hours: M, F 12:00-12:50,W 3:10-4:00 and by appointment

Office: Ritter Hall 228

phone: 977-2804
email: kim.druschel@gmail.com

This course is designed to give the student the basic proficiency with some programming language that would be needed for applications and
insight into the multiple programming tools available to them as scientists or engineers. Emphasis in examples will be on applications to
 the sciences and engineering.





Announcements

Test #1 is Friday, March 2

Test #1 Topics

Test #1 Answers

Test #2 is Friday, April 27

Test #2 Topics

Test #2 Answers

Final is Friday, May 11, 12:00-1:50





Schedule

  Schedule is tenative. Chapters refer to the text by Kaplan (K) or  Etter&Ingber (E)

Week
Topics
Monday
Wednesday
Friday
1  1/15-19

Algorithms,Overview of Computers and Programming, Introduction to MATLAB: variables, simple data types,text

discussion: syllabus, algorithms, overview, MATLAB demos
Reading: Chpt. 1 (K),
HW: Write a detailed description of an algorithm you use. Due Friday.
MATLAB intro, variables,simple data types
Reading: Chapter 2,3.1-3.3 (K)
Write a program which takes in width, height, and length of a box and outputs the volume and surface area of the box. Due 1/24
2  1/22-26
MATLAB arrays, logical data type, scripts
Read 3.4-3.5

Read 4.1 ,6.2
HW:due Wed 1/31
Read 7.1-7.3
3  1/29-2/2 MATLAB branching
HW: heat Due 2/7
HW:ifelseexamp Due 2/2
DNA
heatprog
4  2/5-2/9 MATLAB switches, matrices, basic file input/output, for loop read 4.2,7.4
classnotes
classnotes2
classnotes3
read 8.1-8.3
read 8.4-8.7
notes
5  2/12-2/16 MATLAB for loops
hw
newtons
squares
gencod
harmonic
hw
(due 2/21)
box(nestedloop)
colorloop
Read 8.8
dicerolls
box2
6  2/19-2/23
MATLAB while loops, functions Read Chapter 6
winningstreak1
winningstreak2
str3
hw
While loops
SUMQ
avofinput
APPROXE
approxetaylor
while loop:
molwt
functions
notesfromclass
7 2/26-3/2 MATLAB functions,, file types, more plotting, 
manyreturns
functions for a parabola:
vert
parabinfo
parab
myparab
functions for linear regression and corr coeff

image files
photo
m file for imagemanip
redeye.m
frameit.m
Exam I
8  3/5-3/9 Scientific Computing,
approximating an integral,finding a zero,
feval
parametric curves,
Bezier curves

9  3/12-3/16 SPRING BREAK-no classes



10 3/19-3/23
Chpt. 2,3: Intro to C++, C++ control structures
linux, a first program

circle program,silo program (loop to find min)

11 3/26-3/30
Chpt 3, Loops Chpt 4, Data Files



12 4/2-4/6 Chpt 5 Functions

Good Friday-no classes
13 4/9-4/13 Chpt 6,7 1&2 D arrays



14 4/16-4/20 Larger programs,Scientific Computing


15 4/23- 4/27
Chpt. 8 Classes (intro)

Exam II
16 4/30-5/4
Project linking MATLAB and C++
 





WWW Resources



Applications

Nasa and Hearts

DNA,etc


MATLAB
general
bioinformatics
links at MATLAB
Octave
Notd that Octave is a free version of MATLAB. I cannot provide help on its installation, and, while it is very similar
to MATLAB, you may have to modify your code to work on MATLAB before you submit it. 

ITS support

C++ language
Eckels downloadable C++ book

Linux help(1) (2) (3)