Professional Documents
Culture Documents
ABSTRACT
The current paper is mainly devoted to construct a generalized symbolic Thomas algorithm that will never fail. Two
new efficient and reliable computational algorithms are given. The algorithms are suited for implementation using
computer algebra systems (CAS) such as Mathematica, Macsyma and Maple. Some illustrative examples are given.
Keywords: Tridiagonal Matrices; LU Factorization; Linear Systems; DETGTRI Algorithm; Thomas Algorithm
simplest rational form. Meanwhile, det Tn( k ) p 0 . remove all cases in which the k-Thomas numeric algo-
rithm fails, it is convenient to give the following sym-
The Algorithm 2.1 will be referred to as k-DETGTRI
algorithm. The DETGTRI algorithm in [6] is a special bolic version of the k-Thomas numeric algorithm de-
case of the k-DETGTRI algorithm when k = 1. Note that scribed above. The k-Thomas symbolic algorithm can be
the k-DETGTRI algorithm computes det Tn( k ) in linear stated as follows:
Algorithm 3.2. (Generalized symbolic Thomas al-
time.
gorithm)
3. Generalization of the Thomas Numeric To solve the linear system of the form (3.1), we may
proceed as follows:
Algorithm
Step 1: Compute c1 , c2 , , cn to its simplest rational
In this section, we are going to generalize the well- forms using (2.4), setting cr ( is just a symbolic
known Thomas numeric algorithm [7]. The purpose of
the generalized algorithm is to solve the following linear name) whenever cr 0, r 1, 2, , n .
system for any k 1, 2, , n 1 . Step 2: Compute z1 , z2 , , zn to its simplest rational
The new algorithm can be stated as follows: forms using:
d1 0 0 a1 0 0 x1 y1
0 d2 0 0 a2 x2 y2
0 0 0 x3 y3
0 d nk ank
. (3.1)
bk 1 0 0
0 bk 2 0 0 xn2 yn 2
0 0 d n1 0 xn1 yn1
0 0 bn 0 0 d n xn yn
(k )
2 0 0 0 1 0 0 0 0 0 x1 4 the matrix T is nonsingular.
n
z1 4, z2 2, z3 0, z4 13, z5 8, z6 12, z7 0,
0 1 0 0 0 1 0 0 0 0 x2 2
1 2
0 0 1 0 0 0 2 0 0 0 x3 0 z8 , z9 , z10 24 (Step 2);
3
0 0 0 3 0 0 0 4 0 0 x3 13
2 1
2 0 0 0 4 0 0 0 1 0 x5 12 x1 1, x2 1, x3 0, x4 3,
. 1 0
0 1 0 0 0 2 0 0 0 3 x6 10
2 2
0 0 3 0 0 0 5 0 0 0 x7 0 x5
1 0 6 7 2, x 1, x 0, x 1, x
8 9
1 0
2,
0 0 0 2 0 0 0 3 0 0 x8 9 x10 3 (Step 3).
0 0 0 0 1 0 0 0 1 0 x9 0 Example 4.3. Consider the k-tridiagonal matrix
0 0 0 0 0 5 0 0 0 3 x10 4
2 0 0 0 1 0 0 0 0 0
(4.1) 0 1 0 0 0 1 0 0 0 0
Applying the numeric or the symbolic version of the 0 0 1 0 0 0 2 0 0 0
k-Thomas algorithms gives:
c1 2, c2 1, c3 1, c4 3, c5 3, c6 3, c7 11, 0 0 0 3 0 0 0 4 0 0
2 0 0 0 1 0 0 0 1 0
1 4 Tn( k ) . (4.3)
c8 , c9 , c10 8 (Step 1);
3 3 0 1 0 0 0 2 0 0 0 3
0 0 3 0 0
Hence det Tn( k ) 2112 . Thus Tn( k ) is nonsingular.
0 0 0 5 0
0 0 0 2 0 0 0 3 0 0
z1 4, z2 2, z3 0, z4 13, z5 8, z6 12, z7 0,
0 0 0 0 1 0 0 0 1 0
1 8
z8 , z9 , z10 24 (Step 2); 0 0 0 0 0 5 0 0 0 5
3 3
x1 1, x2 1, x3 0, x4 3, x5 2, x6 1, x7 0, x8 1, For this matrix, the k-DETGTRI algorithm gives:
x9 2, x10 3 (Step 3). 1
c1 2, c2 1, c3 1, c4 3, c5 , c6 3, c7 11, c8 ,
Example 4.2. Consider the following k-tridiagonal 3
system with n = 10 and k = 4 (this example is Example
c9
1
, c10 . (Step 1)
4.1 with slight modifications in some positions. The
Hence det Tn( k ) 66 1 0 0. Therefore the General Tridiagonal Matrices,” Applied Mathematics Let-
ters, Vol. 19, No. 8, 2006, pp. 712-720.
matrix Tn( k ) is singular.
doi:10.1016/j.aml.2005.11.012
5. Conclusion [4] M. El-Mikkawy and T. Sogabe, “A New Family of k-Fib-
onacci Numbers,” Applied Mathematics and Computation,
A generalized symbolic Thomas algorithm, that will Vol. 215, No. 12, 2010, pp. 4456-4461.
never fail, is developed, for the first time, in this paper. doi:10.1016/j.amc.2009.12.069
The algorithm is suited for implementation using the [5] T. Sogabe and M. El-Mikkawy, “Fast Block Diagonaliza-
Computer Algebra Systems (CAS) such as Macsyma, tion of k-Tridiagonal Matrices,” Applied Mathematics and
Maple and Mathematica. Computation, Vol. 218, No. 6, 2011, pp. 2740-2743.
doi:10.1016/j.amc.2011.08.014
[6] M. E. A. El-Mikkawy, “A Fast Algorithm for Evaluating
REFERENCES nth Order Tridiagonal Determinants,” Journal of Compu-
tational and Applied Mathematics, Vol. 166, No. 2, 2004,
[1] M. E. A. El-Mikkawy, “A Note on a Three-Term Recur-
pp. 581-584. doi:10.1016/j.cam.2003.08.044
rence for a Tridiagonal Matrix,” Applied Mathematics
and Computation, Vol. 139, No. 2-3, 2003, pp. 503-511. [7] R. L. Burden and J. D. Faires, “Numerical Analysis,” 7th
doi:10.1016/S0096-3003(02)00212-6 Edition, Books & Cole Publishing, Pacific Grove, 2001.
[2] M. E. A. El-Mikkawy, “On the Inverse of a General Tri- [8] A. Yalciner, “The LU Factorization and Determinants of
diagonal Matrix,” Applied Mathematics and Computation, the k-Tridiagonal Matrices,” Asian-European Journal of
Vol. 150, No. 3, 2004, pp. 669-679. Mathematics, Vol. 4, No. 1, 2011, pp. 187-197.
doi:10.1016/S0096-3003(03)00298-4 doi:10.1142/S1793557111000162
[3] M. E. A. El-Mikkawy and A. Karawia, “Inversion of