Polska wersja

Scientific Computing 2018/19

Tuesday lecture 1015am in room 5870, lab 1215pm room 2041(lab)

Office hours:

Plan. (room 5010 - IV floor). - during classes only, otherwise please contact me by e-mail

Homeworks - lab problems

Each lab problem will have a due date. Lab short problems which are late (showed me after the due date), will obtain the graded no of points multiplied by 0.8.

Exam

Project (25%) and lab short problems (solved in the lab) 50% - oral questions 25%. During the exam one should show a short report (2-3 pages details in project section) and the code in action and answer a few questions concerning the material presented in the lectures.
The formal date in the plan of this session is Saturday, June 15, 2019, but I will write when I am available and when you can pass the oral exam and show me a project solution, if none suits one of you please contact me by e-mail.
Oral exam date: Monday September 2, 2019 - 10am-12pm (or longer in case of many people). Please, confirm his participation by e-mail.
Project can be sent as an archived bundle (gzipped tar or zip file) - it must be well documented and code must be working in the students lab.
    Questions/problems for the oral exam. Three questions. I will ask one question and the examinee may pick the other two.
  1. Sparse matrices formats in octave and in general.
  2. Octave: how to solve in octave the basic computational problems of numerical linear algebra such as solving linear systems, LLSP, eigenvalue problems, SVD etc
  3. Octave: how to compute in octave integrals, double or triple integrals?
  4. Octave: how to solve nonlinear systems of equations? How to compute the inverse of an univariate function? How to compute a value of an implicitely defined function?
  5. Octave: how to solve in octave ODEs?
  6. Numerical solvers for ODEs : simple examples, what is stiffness, adaptive step refinement, multistep schems, Runge's schemes etc (no theory - just ideas as it was presented in the lectures)
  7. Numerical libraries: how to call a fortran function in C? Matrices in fortran: how are they stored in the memory.
  8. Numerical libraries: BLAS what type of functions are in this lib?
  9. Numerical libraries: LAPACK : what does this lib contain? i.e. what computational tasks can we solve using LAPACK?
  10. Numerical libraries: other numerical libs - which library one can use for solving/computing: integrals, nonlinear equations, ODEs. Examples of general numerical libs (contaning solvers almost all problems)
  11. Finite Difference Method - the main idea described on the example of BVP: -u''=f on [a,b] u(a)=al;u(b)=beta. How to treat a Neumann boundary condition, e.g., u'(b)=beta?
  12. Numerical Codes Optimization Techniques: memory hierarchy, Amdahl's law, basic techniques like loop unrolling etc, optimization compiler options.
  13. make, makefile - what is this? What are the basic rules? etc How to write a simple makefile? (if I will manage to present it tomorrow)
Optional means that one can refuse to reply to this question/problem - then I ask another.

Next lab

Octave scripts or source C files

Projects

References

  1. P. Krzyżanowski, Obliczenia inżynierskie i naukowe. Skuteczne, szybkie, efektowne, Wydawnictwo Naukowe PWN, 2011
  2. P. Krzyżanowski, Obliczenia naukowe. Html lecture notes (in Polish). Pdf version is also available there. University of Warsaw. 2010.

Lab


A few octave scripts, m-files, source C files, LAPACK functions

Link to Octave

Octave scripts, m-files,simple C files with e.g. examples of an use of BLAS/LAPACK

matbasic.m - a script with basic octave commands we can edit it : gedit matbasic.m
lab2.m -a few solutions, linear regression
lab3.m - solutions of the breeding problem

Project

Projects

(details soon)
  1. Optimal control (a stationary version in 1D discretized by FDM is easy and recommended by all of You) There is one project in two versions, i.e. optimal control of a heated room, described in details (there 2 versions: stationary and unstationary with many possible space discretizations method - I would describe 2 in details during lectures). I have other projects - ask for details).
  2. (medium difficult) ODE model of golf putting - in the paper a model of golf putting on the green is presented. The goal of project using pctave ODE solver (e.g. lsode() or oder45()) solve the model for examples of green surface presented in the paper - repeat the computations - compare with the tables from the paper.
    In the optimal control project I simplified necessary tests (it is enough to test the linear case - cf. describtion for details)

    Return to my homepage


    Last update : May 28, 2019