powered by
Matrix cosine of a real or complex square matrix.
Eigen_cos(M)
a square matrix, real or complex
The matrix cosine of M.
M
# NOT RUN { library(EigenR) M <- toeplitz(c(1,2,3)) cosM <- Eigen_cos(M) sinM <- Eigen_sin(M) cosM %*% cosM + sinM %*% sinM # identity matrix # }
Run the code above in your browser using DataLab