Computational Programming with Python
NUMA01 Computational Programming with Python, 7,5 credits, is a compulsory course for a Bachelor of Science degree in mathematics. The course can be taken as a stand-alone course. The course is given at half-study pace during the second half of each semester. The course is given in English.
Course Content
- Basic programming concepts, data structures, conditional statements, functions
and classes - Problem-solving using a few basic numerical methods associated with
mathematics and physics - The basic functions and data types of the Python programming language:
arithmetic operations, arrays of vectors, matrices, graphics functions, lists, tuples,
dictionaries, file management - Use of modules such as NumPy, SciPy and Matplotlib
- The representation of floating point numbers and their implications for arithmetic
- Syntax: [for], [if-else], [while], list comprehensions, generators
- Nested functions, self-defined functions and modules
- Classes and inheritance applied to mathematical objects
- Tests and profiling
Teaching
The teaching consists of lectures and computer exercises. Participation in computer exercises and any integrated teaching is compulsory.
Assessment
The assessment is based on reports of computer exercises throughout the course and on a major programming project to be completed in groups.
Course Literature
- Führer, Solem, Verdier: Scientific Computing with Python (2nd Ed.), Packt Publishing, 2021, ISBN 9781838822323
Official Course Description
Course Evaluation
Link to course evaluations on the department's website: