This repo contains a few numerical algorithms I wrote during one of my engineering classes. The files names and associated information is summarised below.
- Pick a function to integrate and define in integral().
- Pick bounds of integration and specify the exact answer in true_value.
- Select a range of increments for discrete calculations, specify in delta_x.
- Modify x_coordinates if needed, to match the delta_x.
Example plot shown below:
A method to factorise a squre matrix in Lower and Upper triangle matrices (LU decomposition). This only works for Hermitian, positive definite matrix. Refer https://byjus.com/maths/cholesky-factorization/ for more information.
This file contains 2 main functions:
- calculate the determinant of any matrix
- solve sparse tri-diagonal matrix (refer: https://en.wikipedia.org/wiki/Tridiagonal_matrix_algorithm)