Numerical Methods in the Python Ecosystem, Janko Slavič, 2025/26

Numerical Methods in the Python Ecosystem, Janko Slavič, 2025/26#

The content presented here is the basis for the Numerical Methods course taught at the Faculty of Mechanical Engineering (University of Ljubljana):

The lecture templates are located in the notebooks folder, or you can view them in the online book (links are listed below).

This is the American-English translation of the Slovenian book pynm.

Please read the Study and Examination Rules; it contains key information about taking the course.

Lecture schedule#

  1. Oct 6: Introduction to Python, part 1

  2. Oct 13: Introduction to Python, part 2

  3. Oct 20: Printing, file handling, functions, modules

  4. Nov 3: Modules, NumPy, Matplotlib

  5. Nov 10: Object-oriented programming, symbolic computation

  6. Nov 17: Introduction to numerical methods and systems of linear equations 1

  7. Nov 24: Systems of linear equations 2

  8. Dec 1: Interpolation

  9. Dec 8: Approximation

  10. Dec 15: Root finding

  11. Dec 22: Numerical differentiation

  12. Jan 5: Numerical integration

  13. Jan 12: Numerical solution of differential equations - initial value problem and boundary value problem

  14. Testing code correctness, user interface

  15. Introduction to Mathematica*

* Optional lecture. Students of the Faculty of Mechanical Engineering UNI-LJ can obtain a licensed version of Mathematica at this link.

License#

This work is free for non-commercial use, provided that you cite the source, the author, and the Faculty of Mechanical Engineering, University of Ljubljana.