powered by
Matrix hyperbolic cosine of a real or complex square matrix.
Eigen_cosh(M)
a square matrix, real or complex
The matrix hyperbolic cosine of M.
M
# NOT RUN { library(EigenR) M <- toeplitz(c(1,2,3)) Eigen_cosh(M) (Eigen_exp(M) + Eigen_exp(-M)) / 2 # identical # }
Run the code above in your browser using DataLab