C++ asinh()
Published Nov 12, 2022Updated Dec 21, 2022
Contribute to Docs
The asinh() function returns the inverse hyperbolic sine of an angle given in radians.
Syntax
asinh(n)
The n parameter can be a floating-point value (e.g., a long or double) or an integral type (e.g., an int or bool).
Example
This example uses the asinh() function to return the inverse hyperbolic sine of 3.14159:
#include <iostream>#include <cmath>int main() {double x = 3.14159;double result;result = std::asinh(x);std::cout << result << " radian" << "\n";}
This example results in the following output:
1.8623 radian
Codebyte Example
This example uses the asinh() function to take an argument of 4.55 and return the inverse hyperbolic sine:
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 C++ 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 C++ — a versatile programming language that’s important for developing software, games, databases, and more.
- Beginner Friendly.11 hours