Logo Search packages:      
Sourcecode: abakus version File versions  Download package

HNumber HMath::atanh ( const HNumber x ) [static]

Returns the arc hyperbolic tangent of x. The result is in radians.

Definition at line 1271 of file hmath.cpp.

References abs(), HNumber::isNan(), ln(), and HNumber::nan().

  HNumber one(1), two(2);

  if(x.isNan() || HMath::abs(x) >= one)
    return HNumber::nan();

  return HMath::ln((one + x) / (one - x)) / two;

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index