cos cosine function

## Syntax

    [y]=cos(x)

## Arguments

x

  real or complex vector/matrix

## Description

For a vector or a matrix, `cos(x)` is the cosine of its elements . For matrix cosine use `cosm(X)` function.

## Sample

x = -%pi*2:.05:%pi*2; plot(x,cos(x))

## Examples

    x=[0,1,%i]
    acos(cos(x))

## See also

- cosd
- acos
- acosd
- cosm