Back to index

lightning-sunbird  0.9+nobinonly
Functions
w_atanh.c File Reference
#include "fdlibm.h"

Go to the source code of this file.

Functions

double fd_atanh (double x)

Function Documentation

double fd_atanh ( double  x)

Definition at line 61 of file w_atanh.c.

{
#ifdef _IEEE_LIBM
       return __ieee754_atanh(x);
#else
       double z,y;
       z = __ieee754_atanh(x);
       if(_LIB_VERSION == _IEEE_ || fd_isnan(x)) return z;
       y = fd_fabs(x);
       if(y>=1.0) {
        int err;
           if(y>1.0)
               return __kernel_standard(x,x,30,&err); /* atanh(|x|>1) */
           else 
               return __kernel_standard(x,x,31,&err); /* atanh(|x|==1) */
       } else
           return z;
#endif
}

Here is the call graph for this function: