tan tangent

## Syntax

    [t] = tan(x)

## Arguments

x

  a vector or matrix.

t

  a vector or matrix.

## Description

The elements of `t` are the tangent of the elements of `x`.

## Sample

x=(-%pi/2)+0.01:0.01:(%pi/2)-0.01; plot(x,tan(x))

## Examples

    x=[1,%i,-1,-%i]
    tan(x)
    sin(x)./cos(x)

## See also

- tand
- atan
- atand
- tanm