Atanh Function


  • It is used for getting the Arc HyperBolic Tangent value of the argument .
  • This argument must be in the range -1 to 1 .

  • Syntax:

    float atanhf(float arg);
    
    double atanh(double arg);
    
    long double atanhl(long double arg);

    Example:

    #include <math.h>
    #include <stdio.h>
    
      int main()
      {
        double x = -1.0;
    	
        do {
          printf("Arc Hyperbolic tangent of %f is %f.\n", x, atanh(x));
          x += 0.1;
        } while(x<=1.0);
    
        return 0;
      }
     
    Back