tanh hyperbolic tangent

## Syntax

    t = tanh(x)

## Description

The elements of `t` are the hyperbolic tangents of the elements of `x`.

## Sample

x=-%pi:0.01:%pi; plot(x,tanh(x))

## Examples

    x=[1,%i,-1,-%i]
    tanh(x)
    sinh(x)./cosh(x)

## See also

- atanh
- tan
- tanhm

## History

6.1.0 Extension to sparse matrices.