tanh

View page source

The Hyperbolic Tangent Function: tanh

Syntax

y = tanh ( x )

x, y

See the Possible Types for a unary standard math function.

Atomic

This is an atomic operation .

Derivative

\[\R{tanh}^{(1)} (x) = 1 - \tanh (x)^2\]

Example

The file tanh.cpp contains an example and test of this function.