Math.Tanh(Value)

.Tanh() method returns the hyperbolic tangent of a number.

Applies To

Description

Math.Tanh() method returns the hyperbolic tangent of a number.

Properties and Methods

None

Available

The .Tanh(Value) method is available in:

  • 15.03.016
  • All newer builds

Type

Decimal

Syntax

Math.Tanh(Value);

Parameters

Parameter

Required

Description

Value

Yes

Any data that can be evaluated as a number.

If the value cannot be evaluated as a number, then DEACOM will throw a scripting error.

Example

Event.Form.MessageBox('Math.Tanh(0): ' + Math.Tanh(0) +

'\nMath.Tanh(1): ' + Math.Tanh(1) +

'\nMath.Tanh(-1): ' + Math.Tanh(-1) +

'\nMath.Tanh(5): ' + Math.Tanh(5));

 

/* Expected System Prompt Display:

Math.Tanh(0): 0

Math.Tanh(1): 0.761594155955765

Math.Tanh(-1): -0.761594155955765

Math.Tanh(5): 0.999909204262595

*/