Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Numerical Methods in the Python Ecosystem, Janko Slavič, 2026/27

Faculty of Mechanical Engineering, University of Ljubljana

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 (Jupyter notebooks) are located in the notebooks folder, or you can view them in the online book (links are listed below).

The exercise templates (problem definitions, without solutions) are located in the Exercise templates folder.

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

The whole book is also available as a PDF (rebuilt automatically on every deploy).

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

Lecture schedule

  1. Oct 5: Introduction to Python, part 1

  2. Oct 12: Introduction to Python, part 2

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

  4. Oct 26: Modules, NumPy, Matplotlib

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

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

  7. Nov 16: Systems of linear equations 2

  8. Nov 23: Interpolation

  9. Nov 30: Approximation

  10. Dec 7: Root finding

  11. Dec 14: Numerical differentiation

  12. Dec 21: Numerical integration

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

  14. Jan 11: 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.