C# Acosh()

ksuraev's avatar
Published Nov 19, 2025
Contribute to Docs

The Math.Acosh() method returns the inverse hyperbolic cosine (also known as hyperbolic arccosine) of a specified number. It computes the value whose hyperbolic cosine equals the given number.

  • Looking for an introduction to the theory behind programming? Master Python while learning data structures, algorithms, and more!
    • Includes 6 Courses
    • With Professional Certification
    • Beginner Friendly.
      75 hours
  • Learn Microsoft's popular C# programming language, used to make websites, mobile apps, video games, VR, and more.
    • Beginner Friendly.
      15 hours

Syntax

Math.Acosh(number);

Parameters:

  • number: A double-precision floating-point value greater than or equal to 1, for which to compute the inverse hyperbolic cosine.

Return value:

  • The inverse hyperbolic cosine of the specified number in radians as a double.
  • NaN if the input is less than 1 or NaN.

Example: Basic Usage of Math.Acosh()

This example calculates the inverse hyperbolic cosine of a number using Math.Acosh() and displays the result in radians:

using System;
public class Example
{
public static void Main()
{
double number = 1.5;
double result = Math.Acosh(number);
Console.WriteLine($"Math.Acosh({number}) = {result} radians");
}
}

This example outputs the following:

Math.Acosh(1.5) = 0.9624236501192069 radians

Codebyte Example

In this example, the Math.Acosh() method is used to calculate the inverse hyperbolic cosine of a specified number in radians and degrees:

Code
Output
Loading...

All contributors

Contribute to Docs

Learn C# on Codecademy

  • Looking for an introduction to the theory behind programming? Master Python while learning data structures, algorithms, and more!
    • Includes 6 Courses
    • With Professional Certification
    • Beginner Friendly.
      75 hours
  • Learn Microsoft's popular C# programming language, used to make websites, mobile apps, video games, VR, and more.
    • Beginner Friendly.
      15 hours