Function reference · Trigonometry

tanh

Returns the hyperbolic tangent.

It tends to 1 and -1 at the infinities. Call evaluate for a decimal value.

Notation

tanh(x)

Write it in an expression: nerdamer('tanh(0)'), or in the Playground.

nerdamer.tanh

nerdamer.tanh(x: ExpressionInput): Expression

A method on the default import. Arguments can be strings, as in Notation.

Examples

Zero.

tanh(0)
// → 0
Open in Playground

The limit at infinity.

tanh(Infinity)
// → 1
Open in Playground

Its derivative.

diff(tanh(x),x)
// → sech(x)^2
Open in Playground

← Back to Function reference