Menu
   ❮   
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS R TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY CYBERSECURITY DATA SCIENCE
     ❯   

C Math atanh() Function

❮ Math Functions


Example

Return the inverse hyperbolic tangent of different numbers:

printf("%f", atanh(0.78));
printf("%f", atanh(0.5));
printf("%f", atanh(1));
Try it Yourself »

Definition and Usage

The atanh() function returns the inverse hyperbolic tangent of a number.

The atanh() function is defined in the <math.h> header file.


Syntax

One of the following:

atanh(double number);

Parameter Values

Parameter Description
number Required. A number to find the inverse hyperbolic tangent of, in the range -1 to 1.
If the value is outside -1 to 1, it returns NaN (Not a Number).
If the value is equal to -1 or 1 it returns -infinity or infinity.

Technical Details

Returns: A double value representing the inverse hyperbolic tangent of a number.

❮ Math Functions


Related Pages

C Functions Tutorial

C Math Functions Tutorial