I need to define a tridiagonal matrix in maple in such a way that
[b(1) a(1) . . . . . . . . . . . . . 0]
[a(2) b(2) a(2) 0 0 . . . . . . . . . .0]
[0 a(3) b(3) a(3) 0 0 0 . . . . .0]
[0 0 a(4) b(4) a(4) 0 0 . . 0]
[0 . . . . . . . . . . . . . . . . . . . . . . .]
[. . . . . . . . .a(m-1) b(m-1) a(m-1)]
I have no idea how to construct this in maple, perhaps with a loop or any command. Can anybody help me.