2.1.16.7.10 atanh


Description

Calculate the inverse hyperbolic tangent for both real and complex number.

Syntax

double atanh( double x )
complex atanh( complex x )

Parameters

x
[input] Real or complex angle value in radians.

Return

The atanh returns the inverse hyperbolic tangent of x.

Examples

EX1

#include <Origin.h>

int test_atanh()
{
    double vv;
    vv = atanh(0.5);        
    out_double("atanh(0.5) =", vv);  //output should be atanh(0.5) =0.54931
      
    return 1;
}

EX2

int test_atanh()
{
    complex vv;
    vv = atanh(-1+1i);        
    out_complex("atanh(-1+1i) =", vv);  //output should be atanh(-1+1i) =-0.402359+1.017222i
      
    return 1;
}

Remark

See Also

Header to Include

origin.h

Reference