Question: How to define a tridiagonal matrix in Maple

I need to define a tridiagonal matrix in maple in such a way that

 

[1 0 0 0 0. . . . . . . . . . . . . . . . 0]

[a(1) b(1) c(1) 0 0 . . . . . . . . . .0]

[0    a(2)  b(2)  c(2) 0 0 0 . . . . .0]

[0     0     a(3)  b(3) c(3) 0 0  . . 0]

[0 . . . . . . . . . . . . . . . . . . . . . . .]

[0.. . . . . . . . . . . . . . . . . . . . . . .]

[. . . . . . . . .a(m-1) b(m-1) c(m-1)]

[. . . . . . . . . . . . . . . . . . . . . . . 1]

 

I know this isn't clear but this is the idea behind the matrix. I have no idea how to construct this in maple, perhaps with a procedure or if statement but I havent a clue. Can anybody help

Please Wait...