
- C# Basic Tutorial
- C# - Home
- C# - Overview
- C# - Environment
- C# - Program Structure
- C# - Basic Syntax
- C# - Data Types
- C# - Type Conversion
- C# - Variables
- C# - Constants
- C# - Operators
- C# - Decision Making
- C# - Loops
- C# - Encapsulation
- C# - Methods
- C# - Nullables
- C# - Arrays
- C# - Strings
- C# - Structure
- C# - Enums
- C# - Classes
- C# - Inheritance
- C# - Polymorphism
- C# - Operator Overloading
- C# - Interfaces
- C# - Namespaces
- C# - Preprocessor Directives
- C# - Regular Expressions
- C# - Exception Handling
- C# - File I/O
- C# Advanced Tutorial
- C# - Attributes
- C# - Reflection
- C# - Properties
- C# - Indexers
- C# - Delegates
- C# - Events
- C# - Collections
- C# - Generics
- C# - Anonymous Methods
- C# - Unsafe Codes
- C# - Multithreading
- C# Useful Resources
- C# - Questions and Answers
- C# - Quick Guide
- C# - Useful Resources
- C# - Discussion
MathF.Sinh() Method in C# with Examples
The MathF.Sinh() method in C# returns the hyperbolic sine of a floating-point argument.
Syntax
Following is the syntax −
public static float Sinh (float val);
Above, Val is the number whose hyperbolic sine is to be returned.
Example
Let us now see an example to implement the MathF.Sinh() method −
using System; public class Demo { public static void Main(){ float val1 = float.PositiveInfinity; float val2 = float.NegativeInfinity; float val3 = (20f * (MathF.PI)) / 180; Console.WriteLine("MathF.Sinh(val1) = "+MathF.Sinh(val1)); Console.WriteLine("MathF.Sinh(val2) = "+MathF.Sinh(val2)); Console.WriteLine("MathF.Sinh(val3) = "+MathF.Sinh(val3)); } }
Output
This will produce the following output −
MathF.Sinh(val1) = Infinity MathF.Sinh(val2) = -Infinity MathF.Sinh(val3) = 0.356198
Example
Let us now see another example to implement the MathF.Sinh() method −
using System; public class Demo { public static void Main(){ float val1 = 55f; float val2 = float.NaN; Console.WriteLine("MathF.Sinh(val1) = "+MathF.Sinh(val1)); Console.WriteLine("MathF.Sinh(val2) = "+MathF.Sinh(val2)); } }
Output
This will produce the following output −
MathF.Sinh(val1) = 3.847393E+23 MathF.Sinh(val2) = NaN
- Related Articles
- MathF.Tan() Method in C# with Examples
- MathF.Tanh() Method in C# with Examples
- MathF.Truncate() Method in C# with Examples
- MathF.Sin() Method in C# with Examples
- MathF.Sqrt() Method in C# with Examples
- Boolean.GetHashCode() Method in C# with Examples
- Single.Equals() Method in C# with Examples
- Single.CompareTo() Method in C# with Examples
- SByte.ToString() Method in C# with Examples
- Boolean.GetTypeCode() Method in C# with Examples
- Double.CompareTo Method in C# with Examples
- Double.Equals() Method in C# with Examples
- Single.IsPositiveInfinity() Method in C# with Examples
- Single.GetTypeCode Method in C# with Examples
- SByte.GetTypeCode Method in C# with Examples

Advertisements