## C# Math.Atanh() – Examples

In this tutorial, we will learn about the C# Math.Atanh() method, and learn how to use this method to find the angle whose hyperbolic tangent is the specified number, with the help of examples.

## Atanh(Double)

Math.Atanh(d) returns the angle whose hyperbolic tangent is the specified number `d`.

### Syntax

The syntax of Atanh(Double) method is

`Math.Atanh(Double d)`

where

Return Value

The method returns a Double value .

### Example 1 – Atanh()

In this example, we will give different values ranging from Negative Infinity to Positive Infinity to Atanh() method, and find the corresponding angles, in radians.

C# Program

```using System;

class Example {
static void Main(string[] args) {
Double d, result;

d = Double.NegativeInfinity;
result = Math.Atanh(d);

d = -5;
result = Math.Atanh(d);

d = -1;
result = Math.Atanh(d);

d = 0;
result = Math.Atanh(d);

d = 1;
result = Math.Atanh(d);

d = 5;
result = Math.Atanh(d);

d = Double.PositiveInfinity;
result = Math.Atanh(d);
}
}```

Output

```Atanh(-∞) = NaN radians.

### Conclusion

In this C# Tutorial, we have learnt the syntax of C# Math.Atanh() method, and also learnt how to use this method with the help of C# example programs.