UNPKG
php.js
Version:
latest (0.1.1)
0.1.1
0.1.0
Use phpjs functions as required.
php.js
/
sinh.js
10 lines
(8 loc)
•
303 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
module
.
exports
=
function
(
){
return
sinh.
apply
(
exports
,
arguments
) };
function
sinh
(
arg
) {
// discuss at: http://phpjs.org/functions/sinh/
// original by: Onno Marsman
// example 1: sinh(-0.9834330348825909);
// returns 1: -1.1497971402636502
return
(
Math
.
exp
(arg) -
Math
.
exp
(-arg)) /
2
; }