tanh

Navigation:  Language Reference > Functions > Trigonometric >

tanh

Previous pageReturn to chapter overviewNext page

Syntax

Y = tanh(X);

Description

Returns the hyperbolic tangent of the elements of X.

Examples

b = ramp(2.5);

a = tan(b);

X = [ramp(0);ramp(1)];

Y = tanh(X);

Limitations

Y and X must have the same size.

 

TanH