- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is the use of Math.asinh() and Math.acosh() functions in javascript?
Math.asinh() and Math.acosh() functions are used to find the hyperbolic arc-sine and hyperbolic arc-cosine of a number respectively. These functions are static methods of Math, therefore they are always used as Math.asinh() and Math.acosh(), rather than as methods of a math object created.
Math.asinh()
This method is used to find the hyperbolic arc-sine of a number. It takes a number as a parameter and returns hyperbolic sine value.
Example
<html> <body> <script> document.write(Math.asinh(2)); document.write("</br>"); document.write(Math.asinh(7)); </script> </body> </html>
Output
1.4436354751788103 2.644120761058629
Math.acosh()
This method is used to find the hyperbolic arc-cosine of a number. It takes a number as a parameter and returns hyperbolic cosine value.
Example
<html> <body> <script> document.write(Math.acosh(2)); document.write("</br>"); document.write(Math.acosh(7)); </script> </body> </html>
Output
1.3169578969248166 2.6339157938496336
Advertisements