A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.geeksforgeeks.org/javascript/javascript-math-acosh-method/ below:

JavaScript Math acosh() Method - GeeksforGeeks

JavaScript Math acosh() Method

Last Updated : 12 Jul, 2024

Javascript Math.acosh() method is used to get the hyperbolic arc-cosine of a number. The hyperbolic arc-cosine is known by many names such as hyperbolic inverse cosine and acosh. It is the inverse of the hyperbolic cosine method i.e., The inverse hyperbolic cosine of any value say x is the value y for which the hyperbolic cosine of y is x.

if y = acosh(x) then x = cosh(y) For all x≥1, we have acosh(x)=ln(x+√ x2-1 )

Syntax:

Math.acosh(x)

Parameters: This method accepts a single parameter:

Example: Below is an example of the Math acosh( ) Method.

JavaScript
// Here different values is being used for
// getting hyperbolic cosine method's values.
console.log(Math.acosh(2));
console.log(Math.acosh(1));
console.log(Math.acosh(3));
console.log(Math.acosh(10));

Output
1.3169578969248166
0
1.7627471740390859
2.993222846126381

Example: Here output 0 is the hyperbolic arc-cosine of numbers.

JavaScript
// Here different values is being used for
// getting hyperbolic cosine method's values.
console.log(Math.acosh(5));
console.log(Math.acosh(11));
console.log(Math.acosh(1.5));
console.log(Math.acosh(0));

Output
2.2924316695611777
3.088969904844603
0.9624236501192069
NaN

We have a complete list of Javascript Math Objects methods, to check those please go through this Javascript Math Object Complete reference article.

Supported Browsers:



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4