I would like to solve a linear system using the Thomas algorithm, as explained in the attachment below. I tried to solve it writing each entry using its definition (3.53). But, if the matrix is larger, it takes too long. Is there any way to use Do loop (or another loop) to solve this problem? I attached my codes.
Those statements create the lists to hold the alpha and beta values. Without those statements those lists don’t exist and you’ll then get errors such as
Set::noval: Symbol alpha in part assignment does not have an immediate value. >>
Part::partd: Part specification alpha[[1]] is longer than depth of object. >>