tanh

Hyperbolic tangent function.

Syntax

tan(expr)

Argument

expr
A valid scalar, vector, or matrix expression.

Example

Templex Expression Results
{tanh(PI/2)} 0.917152
{tanh( {0, 1, 2} * PI)} 0, 0.996272, 0.999993
{tanh( { {0, 1}, {1, 0} } )} {0, 0.761594}, {0.761594, 0}
Curve Math Vectors
x = c1.x

y = tanh(c1.x)

Comments

If expr is a scalar, the result is a scalar which is the value of the hyperbolic tangent function of expr.

If expr is a vector, the result is a vector of the same dimensions containing a hyperbolic tangent for each element of expr.

If expr is a matrix, the result is a matrix of the same dimensions containing a hyperbolic tangent for each element of expr.