Numerical Computing (CS-2008) · FAST-NUCES · BS Computer Science
My Numerical Computing course work – nine lectures with Jupyter notebooks, Python assignments, exams, quizzes, study notes and an HPCG optimisation project.
| What | Link |
|---|---|
| Repository | https://github.com/rohaan2802/Numerical_Repo |
| Website (GitHub Pages) | https://rohaan2802.github.io/Numerical_Repo/ |
| Releases page | https://github.com/rohaan2802/Numerical_Repo/releases |
| Release v1.0 | https://github.com/rohaan2802/Numerical_Repo/releases/tag/v1.0 |
| Download: Computational Mathematics textbook (~130 MB) | https://github.com/rohaan2802/Numerical_Repo/releases/download/v1.0/Computational.Mathematics.-.An.introduction.to.Numerical.Analysis.and.Scientific.Computing.with.Python.pdf |
| Download whole repository (ZIP) | https://github.com/rohaan2802/Numerical_Repo/archive/refs/heads/main.zip |
- Course Overview
- Topics Covered
- Repository at a Glance
- Lectures
- Assignments, Exams and Project
- Books and Notes
- Large Files
- Folder Structure
- Screenshots
- Running the Code
- License
- Author
Numerical Computing (CS-2008) at FAST-NUCES Islamabad. The repository has nine lecture sets with their Python notebooks, assignments and a home task in Python, sessional exams, quizzes, the HPCG final project, supporting material and my study notes.
| Unit | Topics |
|---|---|
| Unit 1 – Errors | Number representation, floating-point arithmetic, round-off, truncation and catastrophic cancellation. |
| Unit 2 – Roots & interpolation | Bisection, fixed-point, Newton and secant methods; Lagrange, Newton, Hermite, splines and least squares. |
| Unit 3 – Calculus & ODEs | Numerical differentiation and integration, Euler and Runge–Kutta methods for initial value problems. |
| Unit 4 – Linear algebra | Gaussian elimination, LU, iterative solvers, Gram–Schmidt, QR and SVD; HPCG project. |
| Item | Count |
|---|---|
| Lectures | 9 |
| Jupyter notebooks | 9 |
| Python files | 3 |
| Study notes (Markdown) | 3 |
| PDF documents | 36 |
| Screenshots | 30 |
| Files in total | 61 |
| Lecture | Topic | Covers |
|---|---|---|
| 01 | Computer arithmetic and sources of error | Fixed and floating point, IEEE 754, machine epsilon, round-off and truncation error |
| 02 | Catastrophic cancellation | Loss of significance when subtracting nearly equal numbers, and how to rewrite formulas |
| 03 | Roots of equations | Bisection, fixed-point iteration, Newton–Raphson and secant methods, with a Python notebook |
| 04 | Interpolation and approximation | Linear, quadratic, Lagrange and Newton interpolation, least squares, splines |
| 05 | Numerical integration | Rectangle, midpoint, trapezoidal and Simpson rules, Newton–Cotes, Richardson extrapolation |
| 06 | Numerical differentiation and ODEs | Finite differences, Euler, improved Euler and Runge–Kutta methods |
| 07 | Systems of linear equations | Gaussian elimination, LU factorisation, pivoting, iterative methods |
| 08 | Approximations and QR decomposition | Gram–Schmidt process, QR, SVD and low-rank approximation (slides, notebook, video) |
| 09 | Python basics | Python, NumPy and Matplotlib refresher notebook |
| Item | Folder | Contents |
|---|---|---|
| A1 | Assignment 1 | Root-finding methods compared for accuracy and time (Jupyter notebook) |
| A2 | Assignment 2 | Interpolation – statement, my report and interpolation.py |
| A3 | Assignment 3 | Python solution (Visual Studio Python project) |
| HT | Home task | Python home task (Visual Studio Python project) |
| E | Exams | Sessional I and II papers, the S2 solution and sample answer sheets |
| Q | Quizzes | Quiz 0–6 papers and solutions |
| P | Final project | HPCG kernel optimisation project: brief, rubric and setup guide |
| Folder | Contents |
|---|---|
| Study notes | Bit shifting, and maps in C++ and Python |
| Supporting material | Interpolation notebook, integration notes, worked examples and a video |
| Textbooks | Numerical Methods for Engineers and a Python programming link |
GitHub does not accept files over 100 MB, so this textbook is attached to Release v1.0 instead of the repository:
| File | Size |
|---|---|
| Computational Mathematics – An Introduction to Numerical Analysis and Scientific Computing with Python (PDF) | 136 MB |
Numerical_Repo/
├── Assignments/
│ ├── Assignment_01/ (2 files)
│ ├── Assignment_02/ (5 files)
│ └── Assignment_03/ (3 files)
├── Books/ (2 files)
├── Exams/ (6 files)
├── HomeTask/ (3 files)
├── Lecture #01/ (1 file)
├── Lecture #02/ (1 file)
├── Lecture #03/ (3 files)
├── Lecture #04/ (4 files)
├── Lecture #05/ (2 files)
├── Lecture #06/ (3 files)
├── Lecture #07/ (2 files)
├── Lecture #08/ (4 files)
├── Lecture #09/ (1 file)
├── NC_Final_Project/ (3 files)
├── Notes/ (2 files)
│ └── Supporting Material/ (7 files)
├── Quiz & Sessional/ (7 files)
├── assets/
│ ├── screenshots/ 30 images
│ ├── thumbs/ gallery previews
│ └── css/ js/ website
├── index.html
├── .gitattributes
├── .gitignore
├── .nojekyll
├── LICENSE
└── README.md
git clone https://github.com/rohaan2802/Numerical_Repo.git
cd Numerical_Repo
pip install numpy scipy matplotlib jupyter- Jupyter notebooks (
.ipynb): runjupyter notebook(or open them in VS Code or Google Colab) and run the cells from the top. GitHub also shows them, with their plots, in the browser. - Python scripts: run them directly, for example
python "Assignments/Assignment_02/interpolation.py"orpython HomeTask/HomeTask.py. - Visual Studio:
Assignment_03.slnandHomeTask.slnopen the same scripts as Python projects in Visual Studio with the Python workload installed. - Final project: follow HPCG-Project-Setup-Guide.md to build and run the HPCG benchmark under WSL.
Lecture slides, assignment, quiz and exam papers and textbooks belong to their instructors at FAST-NUCES and to their authors and publishers. They are shared here only for learning and revision. My own solutions, notes, code and the way this repository is organised are free to use for study. See LICENSE.
Mohammad Rohaan – BS Computer Science, FAST-NUCES
- GitHub: @rohaan2802
- Email: m.rohaanarshad@gmail.com
If this helped you with Numerical Computing, a ⭐ on the repository is appreciated.





























