Jump to content

Hyperbolic tangent: Difference between revisions

From Wikibase
Add thumbnail plot (via update-page on MediaWiki MCP Server)
Plain-text caption (math not rendered in file captions) (via update-page on MediaWiki MCP Server)
Line 1: Line 1:
[[Category:Activation function]]
[[Category:Activation function]]
[[File:Tanh-activation-function.svg|thumbnail|$\tanh(z)$ for $z\in[-4.4,4.4]$, with the asymptotes $\pm 1$ and the zero crossing $\tanh(0)=0$ marked]]
[[File:Tanh-activation-function.svg|thumbnail|tanh(z) for z ∈ [−4.4, 4.4], with the asymptotes at ±1 and the zero crossing tanh(0) = 0 marked]]
'''Hyperbolic tangent''' is an [[activation function]].
'''Hyperbolic tangent''' is an [[activation function]].



Revision as of 11:51, 17 November 2026

Languages: English · français · Esperanto

tanh(z) for z ∈ [−4.4, 4.4], with the asymptotes at ±1 and the zero crossing tanh(0) = 0 marked
Image: Rong Martin-Siebler ZHOU and Veramiko AI · CC BY-SA 4.0
· Open in a new tab

Hyperbolic tangent is an activation function.

Definition

$$ \tanh(z)=\frac{e^{z}-e^{-z}}{e^{z}+e^{-z}}. $$

Properties

Output
Range $(-1,1)$
Center 0