|
|
 |
 |
Numerical Python
Guest lecture within the framework of the Bavarian Graduate School of
Computational Engineering
Lecturer
Prof. Hans Petter Langtangen, Omar al-Khayat, and Are Magnus Bruaset
Date
26.2. - 29.2. 2008
Lecture: 9:00-12:00
Exercises: 14:00-16:00
Location
Cauerstrasse 6, Room 0.111
Content
-
Why Python? 45 min talk on why it can be smart to use Python in computational science and engineering. Can be of interest to a wide audience.
-
Introduction to Python programming.
- An extended "Hello, World!" program.
- Read data from file, compute with them, write back to file.
- Good scientific work habits: automate calling a solver and a visualization package, automate repeated parameter runs, (document what you do, tag plots automatically with input data etc.)
-
Python as a Matlab-like computing environment: How to work with array computing
and graphics as in Matlab.
-
Combining Python with Fortran, C, and C++.
- Some simple introductory examples on extension modules in compiled languages.
- Array computing examples where a slow loop in Python is migrated to compiled code. Efficiency tricks etc.
-
Advanced topics: classes, special methods, iterators, dynamic code,
code generation on the fly.
-
Python as a better Unix shell.
Administering files and directories, searching directory trees,
running stand-alone applications, cross-platform code.
Additional Material and detailed Agenda
Exercises
Registration per
mail is required.
|
 |
 |
|