Facebook Page Twitter Page LinkedIn Page
× C# Tutorial C# Advanced C# Resources


The C# Math Acosh() function is used to return inverse hyperbolic cosine of a value. The hyperbolic cosine of x is defined as:

Acosh

In special cases it returns the following:

  • If the argument is NaN, the method returns NaN.
  • If the value of argument is less than 1, the method returns NaN.

Syntax

public static double Acosh (double x);

Parameters

x Specify the value.

Return Value

Returns the hyperbolic cosine of a value.

Example:

In the below example, Acosh() function is used to find out the hyperbolic cosine of a value.

using System;

class MyProgram {
  static void Main(string[] args) {
   Console.WriteLine(Math.Acosh(1));
   Console.WriteLine(Math.Acosh(2));
   Console.WriteLine(Math.Acosh(4));
  }
}

The output of the above code will be:

0
1.3169578969248166
2.0634370688955608

❮ C# Math Methods