Calculate the inverse hyperbolic tangent for both real and complex number.
double atanh( double x )
complex atanh( complex x )
The atanh returns the inverse hyperbolic tangent of x.
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; }
origin.h