tanh()

The system function MathLib.tanh returns the hyperbolic tangent of a number. The result is in the range of -1 to 1.

  MathLib.tanh(numericField mathLibNumber in)
  returns (result mathLibTypeDependentResult)
result
Any numeric or HEX item, as described in Mathematical (system words). The value returned by the MathLib.tanh function is converted to the format of result and returned in result.
numericField
Any numeric or HEX item, as described in Mathematical (system words). The item is converted to double-precision floating-point before result is calculated.

Example

  result = MathLib.tanh(myItem);

Related reference
EGL library MathLib

Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.