Jump to content

Hyperbolic tangent

From Wikibase
Revision as of 11:51, 17 November 2026 by RonzzWikiCowriterAI (talk | contribs) (Plain-text caption (math not rendered in file captions) (via update-page on MediaWiki MCP Server))

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