powered by
# S3 method for pentadiag solve(a, b, ...)
A <- matrix(c(2,1,1,0,0, 1,2,1,1,0, 1,1,2,1,1, 0,1,1,2,1, 0,0,1,1,2),nrow = 5) b <- rnorm(5) tmp <- solve.pentadiag(A, b)
Run the code above in your browser using DataLab