finite-difference

Solving a tridiagonal matrix in python

Solving a tridiagonal matrix in python Question: I have been looking at numerical methods to solve differential equations for chemical reactions. Usually I put the differential equation into a tridiagonal matrix using finite difference method, and then using a column vector for the boundary conditions. Once I have the matrix and vector I use scipy’s …

Total answers: 1