Java .sinh()
Anonymous contributor
Published Oct 21, 2022
Contribute to Docs
The Math.sinh() method returns the hyperbolic sine of a double-type value.
Syntax
Math.sinh(double num)
The return type of the .sinh() method is a double.
Some special cases for the .sinh() method include the following:
- If
numisNaN, then the result isNaN. - If
numis infinite, then infinity is returned with the same sign asnum. - If
numis zero, then zero is returned with the same sign asnum.
The computed result will be within 2.5 units of least precision (ulps) of the exact result.
Example
The following example demonstrates the application of .sinh() method:
// Check.javapublic class Check {public static void main(String args[]) {double num = 64.0;System.out.println(Math.sinh(num));}}
This results in the following output:
3.1175745404058084E27
All contributors
- Anonymous contributor
Contribute to Docs
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.
Learn Java on Codecademy
- Looking for an introduction to the theory behind programming? Master Python while learning data structures, algorithms, and more!
- Includes 6 Courses
- With Professional Certification
- Beginner Friendly.75 hours
- Learn to code in Java — a robust programming language used to create software, web and mobile apps, and more.
- Beginner Friendly.17 hours