Up to
*course homepage*.

- [08/30 08:00]
- Updated versions of diffop.c and diffop.h supporting tridiagonal matrices. The graphs generated can also be printed in this version. A properly formulated version of last Friday's exercises is now available.
- [08/27 13:00]
- diffop.c and diffop.h added.
- [08/25 13:00]
- Makefile for compiling C-files and linking with LAPACK library added.
- [08/24 12:00]
- Script plotdata for plotting columnwise data using gnuplot added.
- [08/23 07:00]
- Slides for the 11 first lectures and computer exercises for Monday afternoon are now available in postscript format.
- [08/12 14:00]
- The first lecture will be given the 23rd of August at 9.15 in room 4523, floor 5, Nada.

`christe@nada.kth.se`

.

Time | Activity | Room |
---|---|---|

9.15-10.00 | Student presentations & discussion | 4523 |

10.15-11.00 | Lecture | 4523 |

11.15-12.00 | Lecture | 4523 |

12.00-13.00 | Lunch | - |

13.00-16.00 | Computer exercises | Red (Röd) |

On Tuesday August 24 an information meeting will be held at 16.15 in room 1537, floor 5, Nada. Contact Lennart Edsberg for further details.

To pass the course students must complete programming exercises and present the results in class. There will be no exam.

The following course plan should be considered to be preliminary. Topics may be added or deleted depending on the previous experience of the students.

Day | Covered topics |
---|---|

Monday 08/23 | A short introduction to Unix & CDE, basic constructs in C: arithmetic expressions, formatted input/output, selection & iteration statements, compiling & linking |

Tuesday 08/24 | Functions in C, passing arguments by value, arrays, multi-dimensional arrays and efficiency, arrays in C and Fortran, redirecting input & output in Unix, gnuplot |

Wednesday 08/25 | Pointer variables, passing arguments by reference, arrays & pointers, dynamic memory allocation, functions in C, C++ and Fortran 77, formatted & binary file I/O |

Thursday 08/26 | Strings, reading command line arguments, interaction with C programs and shell, makefiles, writing large programs (> 10000 lines) |

Friday 08/27 | The C preprocessor, portability, conditional compilation, mixing C, C++ and Fortran 77 code, call conversion interfaces, structures & type definitions, enumerations, function pointers, structures and C++-classes |

Monday 08/30 | MATLAB |

Tuesday 08/31 | The lectures will be devoted to the refresher material. Computer exercises on MATLAB. |

Date | Handouts |
---|---|

08/23 | Slides ( Lecture 1 , Lecture 2 , Lecture 3 ) , Computer exercises , Excerpts from "The Linux User's Guide", "Getting Started With Email Using Pine" , "Working with Matlab, a first example" |

08/24 | Slides ( Lecture 4 , Lecture 5 ), Computer exercises |

08/25 | Slides ( Lecture 6 , Lecture 7 ), Computer exercises |

08/26 | Slides ( Lecture 8 , Lecture 9 ) |

08/27 | Slides ( Lecture 10 , Lecture 11 ), Computer exercises |

08/30 | Computer exercises, diffop.c documentation |

(How to view and/or print these handouts.)

Full Matlab documentation is available at the
MATLAB
Help Desk which can be accessed by giving the command *doc* at the
Matlab prompt. Some future courses will use the
The MATLAB 5 Handbbok which is available at the bookstore
"Teknologbutiken" located on the KTH Campus.

- plotdata - a script which plots columns of a file using gnuplot. To be able to execute this file you must save it and give the unix command "chmod u+x plotdata" (plotdata should be replaced by the appropriate filename).
- Makefile for linking with LAPACK - This is a basic makefile which can be used to link C-code with the Fortran 77 LAPACK library for linear algebra operations.
- diffop.c - implementation of some simple difference operators. You will also need the header file diffop.h .

Up to
*course homepage*.

Responsible for this page: Christer Andersson <christe@nada.kth.se>

Latest change:

Technical support: <webmaster@nada.kth.se>