
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Math.Sinh() Method in C#
The Math.Sinh() method in C# is used to return the hyperbolic sine of a specified angle.
Syntax
Following is the syntax −
public static double Sinh(double val)
Above, the argument value is the angle.
Example
Let us now see an example to implement the Math.Sinh() method −
using System; public class Demo { public static void Main(){ double val1 = 30.0; double val2 = 45.0; Console.WriteLine(Math.Sinh(val1)); Console.WriteLine(Math.Sinh(val2)); } }
Output
This will produce the following output −
5343237290762.23 1.74671355287425E+19
Example
Let us see another example to implement the Math.Sinh() method −
using System; public class Demo { public static void Main(){ double val1 = 0.0; double val2 = 1.1; Console.WriteLine(Math.Sinh(val1)); Console.WriteLine(Math.Sinh(val2)); } }
Output
This will produce the following output −
0 1.33564747012418
Advertisements