Skip to content

Math.Tanh

Name Mandatory Description Default Type
⬅️ Input The input float or sequence of floats to calculate the hyperbolic tangent of. FloatFloat2Float3Float4Color[Any]
Output ➡️ Outputs the hyperbolic tangent of the input. FloatFloat2Float3Float4Color[Any]

This shard calculates the hyperbolic tangent of the given input, where the input is the real number. The hyperbolic tangent is a hyperbolic function that is analogous to the circular tangent function, but it uses exponential functions instead of angles.

Examples

1
2
3
@f3(-1.0 0.0 1.0) | Math.Tanh | Log
Math.Subtract(@f3(-0.76159416 0.0 0.76159416)) | Math.Abs
IsLess(@f3(0.00001 0.00001 0.00001)) | Assert.Is(true Break: true)

[info] [sample-wire] @f3(-0.761594 0 0.761594)