Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 75 additions & 0 deletions content/c-sharp/concepts/math-functions/terms/asinh/asinh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
---
Title: 'Asinh()'
Description: 'Returns the inverse hyperbolic sine of a number, in radians.'
Subjects:
- 'Code Foundations'
- 'Computer Science'
Tags:
- 'Arithmetic'
- 'Method'
- 'Numbers'
CatalogContent:
- 'learn-c-sharp'
- 'paths/computer-science'
---

The **`Math.Asinh()`** method returns the inverse hyperbolic sine of a number, in radians. This method appears frequently in advanced mathematics, including physics, geometry, machine learning, and numerical analysis.

> **Note:** The static method `Math.Asinh()` was introduced in .NET Core 2.1.

## Syntax

```pseudo
Math.Asinh(double value);
```

**Parameters:**

- `value`: A real number. If value is `NaN`, the method returns `NaN`.

**Return value:**

The inverse hyperbolic sine of `value`, in radians.

## Example

The following example demonstrates the `Math.Asinh()` method and writes the result to the console:

```cs
using System;
class Program
{
static void Main()
{
double x = 2;
double result = Math.Asinh(x);
Console.WriteLine(result);
}
}
```

The example will result in the following output:

```shell
1.4436354751788103
```

## Codebyte Example

The following codebyte example uses the `Math.PI` constant field to convert the result to degrees:

```codebyte/csharp
using System;
class Program
{
static void Main()
{
double x = 4;
double radians = Math.Asinh(x);
double degrees = radians * (180 / Math.PI);

Console.WriteLine($"Radians: {radians}");
Console.WriteLine($"Degrees: {degrees}");
}
}
```