From 30cba924cf8ca3725a7aa8a9cb495f176dbd7e2d Mon Sep 17 00:00:00 2001 From: Kate Suraev Date: Thu, 13 Nov 2025 21:23:30 +1100 Subject: [PATCH 1/5] [Term Entry] C# Math-functions: Acosh() --- .../math-functions/terms/acosh/acosh.md | 84 +++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 content/c-sharp/concepts/math-functions/terms/acosh/acosh.md diff --git a/content/c-sharp/concepts/math-functions/terms/acosh/acosh.md b/content/c-sharp/concepts/math-functions/terms/acosh/acosh.md new file mode 100644 index 00000000000..de060955ed6 --- /dev/null +++ b/content/c-sharp/concepts/math-functions/terms/acosh/acosh.md @@ -0,0 +1,84 @@ +--- +Title: '.Acosh()' +Description: 'Returns the inverse hyperbolic cosine of a specified number.' +Subjects: + - 'Computer Science' + - 'Web Development' +Tags: + - 'Functions' + - 'Math' + - 'Methods' + - 'Numbers' +CatalogContent: + - 'learn-c-sharp' + - 'paths/computer-science' +--- + +The **`Math.Acosh()`** method is a static method that returns the inverse hyperbolic cosine of a specified number. + +## Syntax + +```pseudo +Math.Acosh(number); +``` + +**Parameters:** + +- `number`: A numeric value of type `double` for which to calculate the inverse hyperbolic cosine. The value must be greater than or equal to 1. + +**Return value:** + +The `Math.Acosh()` method returns: + +- The inverse hyperbolic cosine of the specified number in radians as a `double` if the input is greater than or equal to 1. +- `NaN` if the input is less than 1 or `NaN`. + +## Example: Basic Usage of `Math.Acosh()` + +In this example, the inverse hyperbolic cosine of a specified number is calculated using the `Math.Acosh()` method, and the result is printed to the console: + +```cs +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: + +```shell +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: + +```codebyte/csharp +using System; + +public class Example { + public static void Main() { + double number = 100.0; + + // Calculate Acosh in radians + double resultRadians = Math.Acosh(number); + + // Convert radians to degrees + double resultDegrees = resultRadians * (180.0 / Math.PI); + + // Display results + Console.WriteLine($"Math.Acosh({number}) = {resultRadians} radians"); + Console.WriteLine($"Math.Acosh({number}) = {resultDegrees} degrees"); + } +} +``` From 09da8bcc0d5b262739df5708b4b1e41777adc5c8 Mon Sep 17 00:00:00 2001 From: Mamta Wardhani Date: Thu, 13 Nov 2025 16:51:34 +0530 Subject: [PATCH 2/5] Update acosh.md --- .../concepts/math-functions/terms/acosh/acosh.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/content/c-sharp/concepts/math-functions/terms/acosh/acosh.md b/content/c-sharp/concepts/math-functions/terms/acosh/acosh.md index de060955ed6..0fa0cc4b6c6 100644 --- a/content/c-sharp/concepts/math-functions/terms/acosh/acosh.md +++ b/content/c-sharp/concepts/math-functions/terms/acosh/acosh.md @@ -14,7 +14,7 @@ CatalogContent: - 'paths/computer-science' --- -The **`Math.Acosh()`** method is a static method that returns the inverse hyperbolic cosine of a specified number. +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. ## Syntax @@ -24,18 +24,18 @@ Math.Acosh(number); **Parameters:** -- `number`: A numeric value of type `double` for which to calculate the inverse hyperbolic cosine. The value must be greater than or equal to 1. +- `number`: A double-precision floating-point value greater than or equal to 1, for which to compute the inverse hyperbolic cosine. **Return value:** The `Math.Acosh()` method returns: -- The inverse hyperbolic cosine of the specified number in radians as a `double` if the input is greater than or equal to 1. +- 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()` -In this example, the inverse hyperbolic cosine of a specified number is calculated using the `Math.Acosh()` method, and the result is printed to the console: +This example calculates the inverse hyperbolic cosine of a number using `Math.Acosh()` and displays the result in radians: ```cs using System; @@ -45,9 +45,7 @@ public class Example public static void Main() { double number = 1.5; - double result = Math.Acosh(number); - Console.WriteLine($"Math.Acosh({number}) = {result} radians"); } } From 3492848a8c340d8f93acede2f4409541b55e7bd7 Mon Sep 17 00:00:00 2001 From: Mamta Wardhani Date: Thu, 13 Nov 2025 17:02:05 +0530 Subject: [PATCH 3/5] Update acosh.md --- content/c-sharp/concepts/math-functions/terms/acosh/acosh.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/c-sharp/concepts/math-functions/terms/acosh/acosh.md b/content/c-sharp/concepts/math-functions/terms/acosh/acosh.md index 0fa0cc4b6c6..fde580d3aef 100644 --- a/content/c-sharp/concepts/math-functions/terms/acosh/acosh.md +++ b/content/c-sharp/concepts/math-functions/terms/acosh/acosh.md @@ -1,5 +1,5 @@ --- -Title: '.Acosh()' +Title: 'Acosh()' Description: 'Returns the inverse hyperbolic cosine of a specified number.' Subjects: - 'Computer Science' From 5c15d1f2292e538762a173683187c2170bcdd722 Mon Sep 17 00:00:00 2001 From: Daksha Deep Date: Wed, 19 Nov 2025 16:58:12 +0530 Subject: [PATCH 4/5] no need for another line here --- content/c-sharp/concepts/math-functions/terms/acosh/acosh.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/content/c-sharp/concepts/math-functions/terms/acosh/acosh.md b/content/c-sharp/concepts/math-functions/terms/acosh/acosh.md index fde580d3aef..c080e88acad 100644 --- a/content/c-sharp/concepts/math-functions/terms/acosh/acosh.md +++ b/content/c-sharp/concepts/math-functions/terms/acosh/acosh.md @@ -28,8 +28,6 @@ Math.Acosh(number); **Return value:** -The `Math.Acosh()` method returns: - - The inverse hyperbolic cosine of the specified number in radians as a `double`. - `NaN` if the input is less than 1 or `NaN`. From 2a6529356e0dd5045db0ac0c3d197abe9d3a59e4 Mon Sep 17 00:00:00 2001 From: Daksha Deep Date: Wed, 19 Nov 2025 17:00:21 +0530 Subject: [PATCH 5/5] Update acosh.md --- content/c-sharp/concepts/math-functions/terms/acosh/acosh.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/c-sharp/concepts/math-functions/terms/acosh/acosh.md b/content/c-sharp/concepts/math-functions/terms/acosh/acosh.md index c080e88acad..cc9f7e2fb0a 100644 --- a/content/c-sharp/concepts/math-functions/terms/acosh/acosh.md +++ b/content/c-sharp/concepts/math-functions/terms/acosh/acosh.md @@ -24,12 +24,12 @@ 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. +- `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`. +- `NaN` if the input is less than `1` or `NaN`. ## Example: Basic Usage of `Math.Acosh()`