From ed44950528889ea9abd964d81281f226cc38f165 Mon Sep 17 00:00:00 2001 From: Stuart Mosquera Date: Fri, 21 Nov 2025 09:27:12 -0300 Subject: [PATCH 1/2] Create asinh.md --- .../math-functions/terms/asinh/asinh.md | 82 +++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 content/c-sharp/concepts/math-functions/terms/asinh/asinh.md diff --git a/content/c-sharp/concepts/math-functions/terms/asinh/asinh.md b/content/c-sharp/concepts/math-functions/terms/asinh/asinh.md new file mode 100644 index 00000000000..3f88be2cdd4 --- /dev/null +++ b/content/c-sharp/concepts/math-functions/terms/asinh/asinh.md @@ -0,0 +1,82 @@ +--- +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()`** is a static method that returns the inverse hyperbolic sine of a number, in radians. This method appears frecuently in _advanced mathematics_, such as 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. + +> **Note:** `value` must be greater than or equal to NegativeInfinity, but less than or equal to PositiveInfinity. + +**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}"); + } +} +``` From 8054d7dd18f0f262811372af2882f1d264d61a1b Mon Sep 17 00:00:00 2001 From: Mamta Wardhani Date: Sat, 22 Nov 2025 13:46:17 +0530 Subject: [PATCH 2/2] typo fix and minor framing fixed --- .../concepts/math-functions/terms/asinh/asinh.md | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/content/c-sharp/concepts/math-functions/terms/asinh/asinh.md b/content/c-sharp/concepts/math-functions/terms/asinh/asinh.md index 3f88be2cdd4..08150fde90c 100644 --- a/content/c-sharp/concepts/math-functions/terms/asinh/asinh.md +++ b/content/c-sharp/concepts/math-functions/terms/asinh/asinh.md @@ -13,7 +13,7 @@ CatalogContent: - 'paths/computer-science' --- -The **`Math.Asinh()`** is a static method that returns the inverse hyperbolic sine of a number, in radians. This method appears frecuently in _advanced mathematics_, such as physics, geometry, machine learning, and numerical analysis. +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. @@ -25,9 +25,7 @@ Math.Asinh(double value); **Parameters:** -`value`: A real number. - -> **Note:** `value` must be greater than or equal to NegativeInfinity, but less than or equal to PositiveInfinity. +- `value`: A real number. If value is `NaN`, the method returns `NaN`. **Return value:** @@ -35,19 +33,16 @@ The inverse hyperbolic sine of `value`, in radians. ## Example -The following example demonstrates the `Math.Asinh()` method and writes the result to the console. +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); } } @@ -61,17 +56,15 @@ The example will result in the following output: ## Codebyte Example -The following codebyte example uses the `Math.PI` constant field to convert the result to degrees. +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);