math tanh

For math.

Returns the hyperbolic tangent of the number.

Command Type

built-in

Signature

> math tanh {flags}

Input/output types:

input output
number float
list<number> list<float>

Examples

Apply the hyperbolic tangent to 10*π

> 3.141592 * 10 | math tanh | math round --precision 4
1.0

Ported from nushell/nushell.github.io. Copyright (c) 2021 Nushell Project. MIT License.