PIC 3, introduction to programming, using Fortran

These are the lecture notes for the PIC 3 course, as taught in the winter quarter of 1997 by Victor Eijkhout. The official course book is

Fortran77 and Numerical Methods for Engineers and Scientists,
Larry Nyhoff and Sanford Leestma,
Prentice Hall 1995.

Exercises will be taken mostly from that book.

Here are the reference sections of the lecture notes:

Material covered so far:

And these are the lessons corresponding to the chapters of the book:

  1. Read section 1.1 for your own amusement, and see the notes on the evolution of Fortran. Study section 1.2; see the notes on computer organisation, programming languages, and on representation of data. Do exercises 5, 16, 17, 19.
  2. Read chapter 2, and see the notes on program development. Study section 2.2:; do exercises 1, 12 if you have the math background or 15 otherwise, 20.
  3. Study chapter 3, and see for section 3.2 the notes on source code format; for section 3.3 see the notes on constants and variables, and the specification part (only the declaration, DATA, and PARAMETER statements) and do exercises 1,3,5; for section 3.4 see the notes on expression, and do exercise 3; for section 3.5 see the notes on the assignment statement and do exercises 1,3,5; for section 3.6 see the notes on list-directed I/O; for section 3.7 see the notes on program unit structure and do exercises 2,5,9 of section 3.8; for section 3.9 see the notes on numerical errors.
  4. Study chapter 4, and see for section 4.2 the notes on logical storage, values, and expressions, and do exercises 3,4,6 of section 4.3; for section 4.4 see the notes on jumps and conditionals, and do exercises 2,4,6 (take numerical accuracy into account),9; for sections 4.5,6,7,8,9 see the notes on loops, and do exercises 3,5,8a,9,16 of section 4.10.
  5. Study chapter 5, and see the notes on subprograms; do exercises 3,13,20,21 of section 5.1; do exercise 3 of section 5.2; do exercise 1 of section 5.3; do exercises 2,8 of section 5.5; do exercises 4,5 of section 5.8.
  6. Study chapter 6, and see the notes on I/O;
  7. Study chapters 7 and 8, and see the notes on arrays; do exercises 1,8.9,17 of section 7.5, exercises 5,7,9 of section 8.3,

About your instructor

Victor Eijkhout can be reached by email, you can look up his home page, call him at (310) 852 2173, or visit his office in MS7620, preferably during office hours MWF 10:30-11:30.