DGTSV Example

To solve the equations

Ax = b,

where A is the tridiagonal matrix

A = $\displaystyle \left(\vphantom{
\begin{array}{rrrrr}
3.0 & 2.1 & 0 & 0 & 0 \\ ...
...
0 & 0 & 7.0 & -0.9 & 8.0 \\
0 & 0 & 0 & -6.0 & 7.1
\end{array} }\right.$$\displaystyle \begin{array}{rrrrr}
3.0 & 2.1 & 0 & 0 & 0 \\
3.4 & 2.3 & -1....
....9 & 0 \\
0 & 0 & 7.0 & -0.9 & 8.0 \\
0 & 0 & 0 & -6.0 & 7.1
\end{array}$$\displaystyle \left.\vphantom{
\begin{array}{rrrrr}
3.0 & 2.1 & 0 & 0 & 0 \\ ...
...
0 & 0 & 7.0 & -0.9 & 8.0 \\
0 & 0 & 0 & -6.0 & 7.1
\end{array} }\right)$  and  b = $\displaystyle \left(\vphantom{
\begin{array}{rr}
2.7 \\
-0.5 \\
2.6 \\
0.6 \\
2.7
\end{array} }\right.$$\displaystyle \begin{array}{rr}
2.7 \\
-0.5 \\
2.6 \\
0.6 \\
2.7
\end{array}$$\displaystyle \left.\vphantom{
\begin{array}{rr}
2.7 \\
-0.5 \\
2.6 \\
0.6 \\
2.7
\end{array} }\right)$.

Example program
Example data
Example results