This /cs-notes/nm webpage is a hobby project that aims to create a collection of notes on numerical methods (and analysis) in an orderly fashion. These notes are inspired by the lecture given by Tomasz Romaczukiewicz, some books, and some web articles, but customized on my own. I’ll be adding (or appending or amending) the contents suitably related to this field and will polish them time and again. I hope this work will be helpful for you too.

We’ll be using Python v3.x for all the coding examples. This language is easy to get you to start, and prototyping the concepts. But, for numerical intensive work, I recommend C++ (or Julia or rust). For illustrations via animation, I’ll use manim or matplotlib. While replicating the examples, I recommend using Jupyter Lab or vscode plugin for Jupyter. Since I’m trained to become a physicist so, some of the examples will be related to physics. I hope you don’t feel discouraged if your interest is not in physics. But, you’ll learn so many things related to CS, maths, statistics, and finance which is a win-win situation for you 😃.

Here are some essential settings that we will be using throughout the notes. You can copy and run it in the first cell of your Jupyter notebook (or online using binder, or colab).

# matplotlib settings
from matplotlib import rcParams  #
import shutil  #
rcParams['figure.dpi'] = 120
rcParams['figure.figsize'] = [12,6]
rcParams['font.size'] = 12
rcParams['axes.grid'] = True
rcParams['text.usetex']= True if shutil.which('latex') else False  # Checks if latex is installed. Since, matplotlib.checkdep_usetex(True) will be depreciated in Python >=3.6. So, we use python's standard library named shutil instead.

If you find any typos in my notes or any suggestion (or comment), please write to me at [firstname][AT] You can also join the discussion at here.

Please feel free to save any notes on this webpage by doing Ctrl+P or Command+P on Mac under a CC BY-NC-ND 4.0.

This project is a work in progress. Please be patient for an update.

Acknowledgment of Places & Countries

I want to acknowledge the places and countries where I’ve been to and worked on this project.

  • 2023 Jagiellonian University, & in Adelaide [Tarntanya (Kaurna)]; the beautiful city of Australia.
  • 2022 Jagiellonian University, & in Cracow
  • 2021 This work was started when I was at Jagiellonian University [Uniwersytet Jagielloński (PL)], & in Cracow [Kraków (PL)]; the beautiful, historic and iconic city of Poland

Permalink at

Published on Jul 26, 2021

Last revised on Dec 14, 2023