# thomas algorithm

by all-black
Tags: algorithm, thomas
 P: 13 hye all... we know that in solving of finite difference methode of boundary value problem, the thomas algorithm is needed to solve it.. anyone here know how to use the thomas algorithm? thanks.
 Engineering Sci Advisor Thanks P: 6,031 The thomas algorithm isn't "needed" to solve finite difference systems. It is just an optimised algorithm for solving tridiagonal systems of equations. If your FD system produces tridiagonal equations, it might be useful. Otherwise, it's irrelevant. http://en.wikipedia.org/wiki/Tridiag...trix_algorithm
P: 13
 Quote by AlephZero The thomas algorithm isn't "needed" to solve finite difference systems. It is just an optimised algorithm for solving tridiagonal systems of equations. If your FD system produces tridiagonal equations, it might be useful. Otherwise, it's irrelevant. http://en.wikipedia.org/wiki/Tridiag...trix_algorithm

yes.. my FD system produces tridiagonal equations..

i use this formula before, but still cant get the answer..

thomas.pdf

P: 252

## thomas algorithm

When you say you can't get the answer, do you mean that you have a particular differential equation with boundary conditions that you're solving using a finite difference scheme and the Thomas algorithm?

If you have implemented the Thomas algorithm yourself, check that it functions properly by using a 3x3 or 4x4 system with a known solution.
If the Thomas algorithm functions as it should, check that you have correctly used the boundary conditions in the system.

 Related Discussions Quantum Physics 1 Quantum Physics 11 Engineering, Comp Sci, & Technology Homework 0 Engineering, Comp Sci, & Technology Homework 0