<< cosh trigonometric functions sin >>

cosm


Computes the matrix cosine of a square matrix.


Syntax


res = cosm(x)

Input argument


x

a numeric value: scalar or square matrix

Output argument


res

a numeric value: a square matrix

Description


cosm(x) computes the matrix cosine of x.

Example


A = eye(3, 3);
res = cosm(A)
A = [1, 2; 3, 4];
res = cosm(A)

See also


cos.

History


Version Description
1.0.0 initial version

Author


Allan CORNET

<< cosh trigonometric functions sin >>