Java.Lang.Math.Tanh Method
Returns the closest double approximation of the hyperbolic tangent of the argument.

Syntax

[Android.Runtime.Register("tanh", "(D)D", "")]
public static double Tanh (double d)

Parameters

d
the value whose hyperbolic tangent has to be computed.

Returns

Documentation for this section has not yet been entered.

Remarks

Returns the closest double approximation of the hyperbolic tangent of the argument. The absolute value is always less than 1. The returned result is within 2.5 ulps (units in the last place) of the real result. If the real result is within 0.5ulp of 1 or -1, it should return exactly +1 or -1.

Special cases:

  • tanh(+0.0) = +0.0
  • tanh(-0.0) = -0.0
  • tanh(+infinity) = +1.0
  • tanh(-infinity) = -1.0
  • tanh(NaN) = NaN

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1