Javascript Math cosh()

Introduction

The Math.cosh() function returns the hyperbolic cosine of a number:

Math.cosh(x) // x is a number.
let a = Math.cosh(0);  // 1
console.log(a);/*from  w w  w. java2  s .co  m*/
a = Math.cosh(1);  // 1.5430806348152437
console.log(a);
a = Math.cosh(-1); // 1.5430806348152437
console.log(a);



PreviousNext

Related