autodiff.reverse.tanh

autodiff.reverse.tanh(x)

Return the hyperbolic tangent of x.

Parameters
xint, float, Node
Returns
yfloat or Node

Examples

>>> ad.tanh(1)
0.7615941559557649
>>> x = ad.Node(1)
>>> ad.tanh(x)
Node(0.7615941559557649)