Learn R Programming

EigenR (version 1.2.3)

Eigen_cosh: Matrix hyperbolic cosine

Description

Matrix hyperbolic cosine of a real or complex square matrix.

Usage

Eigen_cosh(M)

Arguments

M

a square matrix, real or complex

Value

The matrix hyperbolic cosine of M.

Examples

Run this code
# 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