Tridiagonal Matrix Algorithm - Method

Method

The forward sweep consists of modifying the coefficients as follows, denoting the new modified coefficients with primes:

c'_i =
\begin{cases}
\begin{array}{lcl} \cfrac{c_i}{b_i} & ; & i = 1 \\ \cfrac{c_i}{b_i - c'_{i - 1} a_i} & ; & i = 2, 3, \dots, n-1 \\
\end{array}
\end{cases}
\,

and:

d'_i =
\begin{cases}
\begin{array}{lcl} \cfrac{d_i}{b_i} & ; & i = 1 \\ \cfrac{d_i - d'_{i - 1} a_i}{b_i - c'_{i - 1} a_i} & ; & i = 2, 3, \dots, n. \\
\end{array}
\end{cases}
\,

The solution is then obtained by back substitution:

Read more about this topic:  Tridiagonal Matrix Algorithm

Famous quotes containing the word method:

    Women are denied masturbation even more severely than men and that’s another method of control—they’re not taught to please themselves.... Most women—it takes them a while to warm up to the “situation” but once they get into it, I’m sure they’re going to get just as hooked as—well, everyone I know is!
    Lydia Lunch (b. 1959)

    Too poor for a bribe, and too proud to importune,
    He had not the method of making a fortune.
    Thomas Gray (1716–1771)

    I have a new method of poetry. All you got to do is look over your notebooks ... or lay down on a couch, and think of anything that comes into your head, especially the miseries.... Then arrange in lines of two, three or four words each, don’t bother about sentences, in sections of two, three or four lines each.
    Allen Ginsberg (b. 1926)