W3cubDocs

/Nushell

math tanh for math

Returns the hyperbolic tangent of the number.

Signature

> math tanh {flags}

Input/output types:

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

Examples

Apply the hyperbolic tangent to 10*π

>3.141592*10|math tanh|math round--precision4
1

Tips: Command math tanh was not included in the official binaries by default, you have to build it with --features=extra flag

Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/math_tanh.html