summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/math/sinh.js
blob: 12e5275918f87fc91a6a1c83444b5dd7355c6dd9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
"use strict";

module.exports = function sinh(arg) {
  //  discuss at: http://locutus.io/php/sinh/
  // original by: Onno Marsman (https://twitter.com/onnomarsman)
  //   example 1: sinh(-0.9834330348825909)
  //   returns 1: -1.1497971402636502

  return (Math.exp(arg) - Math.exp(-arg)) / 2;
};
//# sourceMappingURL=sinh.js.map