Example program for dgtrfs
This example solves the equations
A
X
=
B
,
where
A
is the tridiagonal matrix
A
=
3.0
2.1
0
.0
0
.0
0
.0
3.4
2.3
-
1.0
0
.0
0
.0
0
.0
3.6
-
5.0
1.9
0
.0
0
.0
0
.0
7.0
-
0.9
8.0
0
.0
0
.0
0
.0
-
6.0
7.1
and
B
=
2.7
6.6
-
0.5
10.8
2.6
-
3.2
0.6
-
11.2
2.7
19.1
.
Estimates for the backward errors and forward errors are also output.
f90 source code
Input data file
Expected results