# 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

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

## See also

[cos](cos).

## History

| Version | Description     |
| ------- | --------------- |
| 1.0.0   | initial version |

## Author

Allan CORNET
