acosh.js 105 B

123
  1. module.exports = function(x) {
  2. return 2 * Math.log(Math.sqrt((x + 1) / 2) + Math.sqrt((x - 1) / 2));
  3. };