Introduction to Python
An important part of MA2501 Numerical Methods is the implementation of numerical methods as computer programs. For that we will use Python, a multi-purpose programming language which offers an extensive computing environment designed for numerical computations.
Python is free and can be downloaded from the internet. All the relevant packages for numerical computation can be installed by downloading the Anaconda launcher. Anaconda also includes Jupyter notebooks, which we will use during the course.
- https://www.anaconda.com/download/ (Main site for downloading Anaconda)
However, you may also choose to install Python without the additional packages included in Anaconda, though you will need to learn how to install relevant packages and Jupyter yourself.
- https://www.python.org (Main site for downloading Python)
There are plenty of resources for learning Python. The Python wiki lists some resources for those who are new to programming, and for those who have more experience.
We also recommend the following textbooks:
- Magnus Lie Hetland, Beginning Python, Apress (2017) Available online
- Robert Johansson, Numerical Python, Apress (2015) Available online
- Svein Linge, Hans Petter Langtangen, Programming for Computations - Python, Springer (2016) Available online
- Hans Petter Langtangen, A Primer on Scientific Programming with Python, Springer (2016) Available online
- Hans Petter Langtangen, Python Scripting for Computational Science, Springer (2008) Available online
The three first ones are quite basic and give a comprehensive introduction to Python and its usage for scientific computation. For further documentation on matplotlib, NumPy and SciPy, we recommend the following internet sites: