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