Compute Hyperbolic Sine in JavaScript

Posted by yhuang
Public (Editable by Users)
JavaScript
None
Edit
console.log(Math.sinh(0));
// expected output: 0

console.log(Math.sinh(1));
// expected output: 1.1752011936438014

console.log(Math.sinh(-1));
// expected output: -1.1752011936438014

console.log(Math.sinh(2));
// expected output: 3.626860407847019

Math.sinh(0); // 0
Math.sinh(1); // 1.1752011936438014