module.exports = function cosh(x) { // discuss at: https://locutus.io/ruby/Math/cosh/ // parity verified: Ruby 3.3 // original by: Kevin van Zonneveld (https://kvz.io) // example 1: cosh(0) // returns 1: 1 // example 2: cosh(1) // returns 2: 1.5430806348152437 return Math.cosh(x) }