CodesJava

Easy learning with example program codes

JavaScript math cosh() method

The JavaScript math cosh() method is used to get the hyperbolic cosine of the given number.
Syntax:

Math.cosh(n)

Parameters
n: It represents the number whose hyperbolic cosine have to be get.

Returns
Hyperbolic cosine value of a number

Example

<!DOCTYPE html>
<html>
<body>
<script>  
document.writeln(Math.cosh(0));  
</script>  
</body>
</html>

Output

1
Please follow and like us:
error








Copyright © 2019 CodesJava DMCA.com Protection Status