The LaTeX command for tanh is \tanh.
\tanhWriting a paper? The table generator and the BibTeX cleaner are one click away, no account.
Write \tanh inside math mode, that is between $…$ for inline math or in a \[ … \] or equation block for display math. It is part of core LaTeX math, so no extra package is required.
\tanh sets the name upright with operator spacing; typed as plain letters it would print in italics, as a product of variables.
$\tanh_{i=1}^{n} x_i$Open this example in the live preview: it renders as you type, with no compiler and no signup.
Math operators in LaTeX: the full table or search all 350+ LaTeX symbols.
Use \tanh in math mode; it needs no extra package. For example, $\tanh_{i=1}^{n} x_i$.
None: \tanh is built into LaTeX, so no extra package is required.